org.schwiebert.abl4j.io
Class IOFactory
java.lang.Object
org.schwiebert.abl4j.io.IOFactory
public class IOFactory
- extends Object
This class is used to create an ITreebankReader or ITreebankWriter . The concrete implementation of the object returned by getWriter(PropertiesMap) or getReader(PropertiesMap) depends on the property AblProperties.WRITER_CLASS (or AblProperties.READER_CLASS ). The provided PropertiesMap is further used to configure the writer or reader. See TreebankReader or TreebankWriter for custom implementations. Currently, ABL4J supports two document formats: the "original" format as used by ABL, and a proprietary XML format.
- Author:
- sschwieb
- See Also:
ITreebankWriter,
ITreebankReader
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IOFactory
public IOFactory()
getWriter
public static ITreebankWriter getWriter(PropertiesMap pm)
throws NoWriterAvailableException
- Throws:
NoWriterAvailableException
getReader
public static ITreebankReader getReader(PropertiesMap pm)
throws NoReaderAvailableException
- Throws:
NoReaderAvailableException
© 2007 Stephan Schwiebert