public class SpartanUtil extends Object
Modifier and Type | Field and Description |
---|---|
FileManager |
fm |
Constructor and Description |
---|
SpartanUtil() |
Modifier and Type | Method and Description |
---|---|
javajs.util.SB |
getData(InputStream is,
String[] zipDirectory)
called by SmarterJmolAdapter via JmolUtil to
open a Spartan directory and get all the needed data as a string.
|
Object |
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"
|
private String[] |
getSpartanDirs(String outputFileData)
read the output file from the Spartan directory and decide from that what
files need to be read and in what order - usually M0001 or a set of
Profiles.
|
private String[] |
getSpartanFileList(String name,
String[] dirNums)
returns the list of files to read for every Spartan spardir.
|
SpartanUtil |
set(FileManager fm) |
private String[] |
spartanFileList(String name,
String outputFileData)
Special loading for file directories.
|
private String |
spartanGetObjectAsSections(String name,
String header,
Map<String,String> fileData)
delivers file contents and directory listing for a ZIP/JAR file into sb
|
public FileManager fm
public SpartanUtil set(FileManager fm)
public Object getFileList(String name, boolean isTypeCheckOnly)
name
- isTypeCheckOnly
- public javajs.util.SB getData(InputStream is, String[] zipDirectory)
is
- zipDirectory
- private String[] spartanFileList(String name, String outputFileData)
name
- outputFileData
- private String[] getSpartanDirs(String outputFileData)
outputFileData
- private String[] getSpartanFileList(String name, String[] dirNums)
name
- dirNums
-