StructureProvider
LocalPDBDirectory
, MMCIFFileReader
, PDBFileReader
public interface StructureIOFile extends StructureProvider
Modifier and Type | Method | Description |
---|---|---|
void |
addExtension(java.lang.String ext) |
Associates a file extension with this particular StructureIOFile,
indicating that files of that type can be parsed.
|
java.util.List<java.lang.String> |
getExtensions() |
Returns a list of extensions supported by this class
|
Structure |
getStructure(java.io.File file) |
Read file from File and returns
a Structure object.
|
Structure |
getStructure(java.lang.String filename) |
Open filename and return a Structure object.
|
getFileParsingParameters, getStructureById, setFileParsingParameters
void addExtension(java.lang.String ext)
ext
- a String ...java.util.List<java.lang.String> getExtensions()
Structure getStructure(java.lang.String filename) throws java.io.IOException
StructureProvider.getStructureById(String)
filename
- The path to the file. Must be the correct format for the
implementing class.java.io.IOException
- ...Structure getStructure(java.io.File file) throws java.io.IOException
file
- file containing the structure. Must be the correct format for
the implementing classjava.io.IOException
- ...