Clazz.declarePackage("J.jvxl.readers");
Clazz.load(["J.jvxl.readers.PmeshReader"], "J.jvxl.readers.MsmsReader", ["JU.PT", "$.Rdr", "JU.Logger"], function(){
var c$ = Clazz.decorateAsClass(function(){
this.fileName = null;
Clazz.instantialize(this, arguments);}, J.jvxl.readers, "MsmsReader", J.jvxl.readers.PmeshReader);
Clazz.makeConstructor(c$, 
function(){
Clazz.superConstructor (this, J.jvxl.readers.MsmsReader, []);
});
Clazz.overrideMethod(c$, "init2", 
function(sg, br){
this.init2PFR(sg, br);
this.fileName = (sg.getReaderData())[0];
if (this.fileName == null) return;
this.type = "msms";
this.onePerLine = true;
this.fixedCount = 3;
this.vertexBase = 1;
this.setHeader();
}, "J.jvxl.readers.SurfaceGenerator,java.io.BufferedReader");
Clazz.overrideMethod(c$, "readVertices", 
function(){
this.skipHeader();
return this.readVerticesPM();
});
Clazz.overrideMethod(c$, "readPolygons", 
function(){
this.br.close();
this.fileName = JU.PT.rep(this.fileName, ".vert", ".face");
JU.Logger.info("reading from file " + this.fileName);
try {
this.br = JU.Rdr.getBufferedReader(this.sg.atomDataServer.getBufferedInputStream(this.fileName), null);
} catch (e) {
if (Clazz.exceptionOf(e, Exception)){
JU.Logger.info("Note: file " + this.fileName + " was not found");
this.br = null;
return true;
} else {
throw e;
}
}
this.sg.addRequiredFile(this.fileName);
this.skipHeader();
return this.readPolygonsPM();
});
Clazz.defineMethod(c$, "skipHeader", 
function(){
while (this.rd() != null && this.line.indexOf("#") >= 0) {
}
this.tokens = this.getTokens();
this.iToken = 0;
});
});
;//5.0.1-v7 Mon Aug 17 10:07:10 MDT 2026
