Class UserConfiguration
java.lang.Object
org.biojava.nbio.structure.align.util.UserConfiguration
A container to persist config to the file system
- Author:
- Andreas Prlic
-
Field Summary
-
Constructor Summary
ConstructorDescriptionDefault UserConfiguration: split directory autofetch files default download location. -
Method Summary
Modifier and TypeMethodDescriptionstatic UserConfiguration
fromStartupParams
(StartupParameters params) boolean
Deprecated.void
setAutoFetch
(boolean autoFetch) Deprecated.void
setCacheFilePath
(String cacheFilePath) void
setFetchBehavior
(LocalPDBDirectory.FetchBehavior fetchBehavior) void
setFileFormat
(String fileFormat) void
setObsoleteBehavior
(LocalPDBDirectory.ObsoleteBehavior obsoleteBehavior) void
setPdbFilePath
(String pdbFilePath) toXML
(PrintWriter pw) convert Configuration to an XML file so it can be serializedconvert Configuration to an XML file so it can be serialized add to an already existing xml file.
-
Field Details
-
PDB_FORMAT
- See Also:
-
MMCIF_FORMAT
- See Also:
-
TMP_DIR
- See Also:
-
PDB_DIR
- See Also:
-
PDB_CACHE_DIR
- See Also:
-
lineSplit
-
-
Constructor Details
-
UserConfiguration
public UserConfiguration()Default UserConfiguration:- split directory
- autofetch files
- default download location. This is the first specified of: if the provided path is not a directory then the system's temp directory is used. A non-writable path is allowed, only a warning will be logged.
- default cache location. This is the first specified of:
- "PDB_CACHE_DIR" system property (for instance, -D"PDB_CACHE_DIR"=/tmp)
- "PDB_CACHE_DIR" environment variable
- the value set for "PDB_DIR"
-
-
Method Details
-
getPdbFilePath
-
setPdbFilePath
-
getCacheFilePath
-
setCacheFilePath
-
getAutoFetch
Deprecated. -
setAutoFetch
Deprecated. -
getFetchBehavior
-
setFetchBehavior
-
getObsoleteBehavior
-
setObsoleteBehavior
-
toXML
convert Configuration to an XML file so it can be serialized- Parameters:
pw
-- Returns:
- XMLWriter
- Throws:
IOException
-
toXML
convert Configuration to an XML file so it can be serialized add to an already existing xml file.- Parameters:
xw
- the XML writer to use- Returns:
- the writer again
- Throws:
IOException
- See Also:
-
fromStartupParams
-
setFileFormat
-
getFileFormat
-
getFetchBehavior()