eu.esdihumboldt.hale.common.align.io.impl
Class DefaultAlignmentIO
java.lang.Object
eu.esdihumboldt.hale.common.align.io.impl.DefaultAlignmentIO
public class DefaultAlignmentIO
- extends Object
Save or load an alignment
- Author:
- Simon Templer
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultAlignmentIO
public DefaultAlignmentIO()
load
public static MutableAlignment load(InputStream in,
IOReporter reporter,
TypeIndex sourceTypes,
TypeIndex targetTypes)
throws org.exolab.castor.mapping.MappingException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException
- Load a default alignment from an input stream.
- Parameters:
in
- the input streamreporter
- the I/O reporter to report any errors to, may be
null
sourceTypes
- the source types to use for resolving definition
referencestargetTypes
- the target types to use for resolving definition
references
- Returns:
- the alignment
- Throws:
org.exolab.castor.mapping.MappingException
- if the mapping could not be loaded
org.exolab.castor.xml.MarshalException
- if the alignment could not be read
org.exolab.castor.xml.ValidationException
- if the input stream did not provide valid XML
save
public static void save(Alignment alignment,
OutputStream out)
throws org.exolab.castor.mapping.MappingException,
org.exolab.castor.xml.MarshalException,
org.exolab.castor.xml.ValidationException,
IOException
- Save a default alignment to an output stream.
- Parameters:
alignment
- the alignment to saveout
- the output stream
- Throws:
org.exolab.castor.mapping.MappingException
- if the mapping could not be loaded
org.exolab.castor.xml.ValidationException
- if the mapping is no valid XML
org.exolab.castor.xml.MarshalException
- if the alignment could not be marshaled
IOException
- if the output could not be written
Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d