public interface StructureIOFile extends StructureProvider
Modifier and Type | Method and Description |
---|---|
void |
addExtension(String ext)
Associates a file extension with this particular StructureIOFile,
indicating that files of that type can be parsed.
|
List<String> |
getExtensions()
Returns a list of extensions supported by this class
|
Structure |
getStructure(File file)
Read file from File and returns
a Structure object.
|
Structure |
getStructure(String filename)
Open filename and return a Structure object.
|
getFileParsingParameters, getStructureById, setFileParsingParameters
void addExtension(String ext)
ext
- a String ...List<String> getExtensions()
Structure getStructure(String filename) throws IOException
StructureProvider.getStructureById(String)
filename
- The path to the file. Must be the correct format for the
implementing class.IOException
- ...Structure getStructure(File file) throws IOException
file
- file containing the structure. Must be the correct format for
the implementing classIOException
- ...Copyright © 2000–2016 BioJava. All rights reserved.