HSQLOutput, IsfOutput, IsfSimpleOutput, MemoryOutput, MySQLOutput, XmlOutputpublic abstract class SerialOutput
extends java.lang.Object
This class puts several restrictions on the method invocation sequence. Methods must be called in the following order:
outputMetadata once.
outputExample as many times as needed.
done once.
SerialInput,
Metadata,
Example,
SerialIOException,
UnsupportedException| Modifier and Type | Method | Description |
|---|---|---|
abstract void |
done() |
Finishes the write process.
|
abstract void |
outputExample(Example example) |
Writes the next example to the data reprezentation.
|
abstract void |
outputMetadata(Metadata metadata) |
Writes the metadata (attributes and file's information) to the data
reprezentation.
|
public abstract void outputMetadata(Metadata metadata) throws SerialIOException
metadata - the metadata to be written as Metadata objectSerialIOException - if an error occured during writepublic abstract void outputExample(Example example) throws SerialIOException
example - the example to be writtenSerialIOException - if an error occured during writeUnsupportedException - if trying to write unsupported data typepublic abstract void done()
throws SerialIOException
SerialIOException - when write process cannot be finished