statalign.io.input
Class DataReader
java.lang.Object
statalign.io.input.DataReader
- Direct Known Subclasses:
- CoorReader, FastaReader, NewickReader, PDBReader
public abstract class DataReader
- extends java.lang.Object
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataReader
public DataReader()
supportedExtensions
public abstract java.util.List<java.lang.String> supportedExtensions()
- DataReader plugins must override this to return a list of supported file extensions.
- Returns:
- a list of all lower case file extensions supported by this plugin
read
public DataType read(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
read
public DataType read(java.lang.String fileName)
throws java.io.IOException
- Throws:
java.io.IOException
read
public abstract DataType read(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object