org.biojava.bio.structure.io
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
|
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.
|
boolean |
isAutoFetch()
Fetch files automatically from FTP server.
|
void |
setAutoFetch(boolean autoFetch)
Tell the parser to fetch missing PDB files from the FTP server automatically.
|
void |
setPath(String path)
Set path to file / connection string to db.
|
getStructureById
void setPath(String path)
path
- a String specifying the path valueString getPath()
void 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.