public class MMTFFileReader extends LocalPDBDirectory
LocalPDBDirectory.FetchBehavior, LocalPDBDirectory.ObsoleteBehavior
Modifier and Type | Field and Description |
---|---|
static String[] |
MMTF_OBSOLETE_DIR |
static String[] |
MMTF_SPLIT_DIR |
DEFAULT_PDB_FILE_SERVER, LAST_REMEDIATION_DATE, lineSplit, PDB_FILE_SERVER_PROPERTY
Constructor and Description |
---|
MMTFFileReader()
Constructs a new
MMTFFileReader , initializing the extensions member variable. |
MMTFFileReader(String path)
Constructs a new
MMTFFileReader , initializing the extensions member variable. |
Modifier and Type | Method and Description |
---|---|
protected String |
getFilename(String pdbId)
Converts a PDB ID into a filename with the proper extension
|
protected String[] |
getObsoleteDirPath()
Location of obsolete files within the directory, as an array of paths.
|
protected String[] |
getSplitDirPath()
Location of split files within the directory, as an array of paths.
|
Structure |
getStructure(InputStream inStream)
Handles the actual parsing of the file into a Structure object.
|
static void |
main(String[] args) |
addExtension, checkFileExists, clearExtensions, deleteStructure, downloadStructure, getDir, getExtensions, getFetchBehavior, getFileParsingParameters, getInputStream, getLocalFile, getObsoleteBehavior, getPath, getServerName, getStructure, getStructure, getStructure, getStructureById, initPaths, prefetchStructure, setFetchBehavior, setFileParsingParameters, setObsoleteBehavior, setPath
public static final String[] MMTF_SPLIT_DIR
public static final String[] MMTF_OBSOLETE_DIR
public MMTFFileReader()
MMTFFileReader
, initializing the extensions member variable.
The path is initialized in the same way as UserConfiguration
,
i.e. to system property/environment variable UserConfiguration.PDB_DIR
.
Both autoFetch and splitDir are initialized to falsepublic MMTFFileReader(String path)
MMTFFileReader
, initializing the extensions member variable.
The path is initialized to the given path, both autoFetch and splitDir are initialized to false.public Structure getStructure(InputStream inStream) throws IOException
LocalPDBDirectory
getStructure
in class LocalPDBDirectory
IOException
protected String getFilename(String pdbId)
LocalPDBDirectory
getFilename
in class LocalPDBDirectory
protected String[] getSplitDirPath()
LocalPDBDirectory
getSplitDirPath
in class LocalPDBDirectory
protected String[] getObsoleteDirPath()
LocalPDBDirectory
getObsoleteDirPath
in class LocalPDBDirectory
Copyright © 2000–2018 BioJava. All rights reserved.