public class JmolUtil extends Object
Constructor and Description |
---|
JmolUtil() |
Modifier and Type | Method and Description |
---|---|
private boolean |
clearAndCachePngjFile(FileManager fm,
String[] data) |
Object |
getAtomSetCollectionOrBufferedReaderFromZip(Viewer vwr,
InputStream is,
String fileName,
String[] zipDirectory,
Map<String,Object> htParams,
int subFilePtr,
boolean asBufferedReader)
A rather complicated means of reading a ZIP file, which could be a single
file, or it could be a manifest-organized file, or it could be a Spartan
directory.
|
byte[] |
getCachedPngjBytes(FileManager fm,
String pathName) |
Object |
getImage(Viewer vwr,
Object fullPathNameOrBytes,
String echoName,
boolean forceSync) |
private String[] |
getSpartanSubfiles(String[] zipDirectory)
Called to see if we have a zipped up Mac directory.
|
private boolean |
isSpartanZip(String[] zipDirectory)
check for a Spartan directory.
|
private String |
shortSceneFilename(String pathName) |
public Object getImage(Viewer vwr, Object fullPathNameOrBytes, String echoName, boolean forceSync)
public Object getAtomSetCollectionOrBufferedReaderFromZip(Viewer vwr, InputStream is, String fileName, String[] zipDirectory, Map<String,Object> htParams, int subFilePtr, boolean asBufferedReader)
vwr
- is
- fileName
- zipDirectory
- htParams
- subFilePtr
- asBufferedReader
- public byte[] getCachedPngjBytes(FileManager fm, String pathName)
private boolean clearAndCachePngjFile(FileManager fm, String[] data)
private String[] getSpartanSubfiles(String[] zipDirectory)
zipDirectory
- private boolean isSpartanZip(String[] zipDirectory)
zipDirectory
-