Package org.jmol.adapter.readers.spartan
Class SpartanUtil
java.lang.Object
org.jmol.adapter.readers.spartan.SpartanUtil
A class to isolate Spartan file reading methods from the rest of Jmol.
Two public methods: getFileList and getData
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetData
(InputStream is, String[] zipDirectory) called by SmarterJmolAdapter via JmolUtil to open a Spartan directory and get all the needed data as a string.getFileList
(String name, boolean isTypeCheckOnly) get a complete critical file list for a spartan file Mac directory based on file extension ".spardir.zip" or ".spardir"set
(FileManager fm)
-
Field Details
-
fm
-
-
Constructor Details
-
SpartanUtil
public SpartanUtil()
-
-
Method Details
-
set
-
getFileList
get a complete critical file list for a spartan file Mac directory based on file extension ".spardir.zip" or ".spardir"- Parameters:
name
-isTypeCheckOnly
-- Returns:
- critical files list if just checking type or a buffered reader for a String containing all data
-
getData
called by SmarterJmolAdapter via JmolUtil to open a Spartan directory and get all the needed data as a string.- Parameters:
is
-zipDirectory
-- Returns:
- String data for processing
-