public interface StructureIOFile extends StructureIO
| Modifier and Type | Method and Description |
|---|---|
void |
addExtension(String ext)
add a known File extension.
|
void |
clearExtensions()
clear all file extensions
|
FileParsingParameters |
getFileParsingParameters()
Get the parameters that should be used for file parsing
|
String |
getPath()
get the directory path to the files
|
Structure |
getStructure(File file)
read file from File and returns
a Structure object.
|
Structure |
getStructure(String filename)
open filename and returns
a Structure object.
|
Structure |
getStructureById(String pdbId)
Get a Structure based on its PDB id.
|
boolean |
isAutoFetch()
Fetch files automatically from FTP server.
|
boolean |
isPdbDirectorySplit()
The PDB files are organized hierarchically (as on the PDB - FTP server.
|
void |
setAutoFetch(boolean autoFetch)
Tell the parser to fetch missing PDB files from the FTP server automatically.
|
void |
setFileParsingParameters(FileParsingParameters params)
Set the parameters that should be used for file parsing
|
void |
setPath(String path)
Set path to file / connection string to db.
|
void |
setPdbDirectorySplit(boolean isSplit)
The PDB files are organized hierarchically (as on the PDB - FTP server.
|
void setPath(String path)
path - a String specifying the path valuevoid addExtension(String ext)
ext - a String ...void clearExtensions()
Structure getStructure(String filename) throws IOException
filename - a StringIOException - ...Structure getStructure(File file) throws IOException
file - file containing a PDB or mmcif fileIOException - ...boolean isAutoFetch()
void setAutoFetch(boolean autoFetch)
autoFetch - flag.void setPdbDirectorySplit(boolean isSplit)
isSplit - boolean isPdbDirectorySplit()
Structure getStructureById(String pdbId) throws IOException
getStructureById in interface StructureIOpdbId - a String specifying the id value (PDB code)IOException - ...void setFileParsingParameters(FileParsingParameters params)
params - FileParsingParametersFileParsingParameters getFileParsingParameters()
Copyright © 2012 BioJava. All Rights Reserved.