Clazz.declarePackage ("org.jmol.io2");
c$ = Clazz.decorateAsClass (function () {
this.fm = null;
this.viewer = null;
this.aDOMNode = null;
this.atomSetCollection = null;
this.htParams = null;
Clazz.instantialize (this, arguments);
}, org.jmol.io2, "DOMReader");
Clazz.prepareFields (c$, function () {
this.aDOMNode =  new Array (1);
});
Clazz.makeConstructor (c$, 
function () {
});
Clazz.defineMethod (c$, "set", 
function (fileManager, viewer, DOMNode, htParams) {
this.fm = fileManager;
this.viewer = viewer;
this.aDOMNode[0] = DOMNode;
this.htParams = htParams;
}, "org.jmol.viewer.FileManager,org.jmol.viewer.Viewer,~O,java.util.Map");
Clazz.defineMethod (c$, "run", 
function () {
var info = this.viewer.apiPlatform.getJsObjectInfo (this.aDOMNode, null, null);
if (info != null) this.htParams.put ("nameSpaceInfo", info);
this.atomSetCollection = this.viewer.getModelAdapter ().getAtomSetCollectionFromDOM (this.aDOMNode, this.htParams);
if (Clazz.instanceOf (this.atomSetCollection, String)) return;
this.viewer.zap (false, true, false);
this.fm.fullPathName = this.fm.fileName = this.fm.nameAsGiven = "JSNode";
});
