HSQLInput, IsfInput, MemoryInput, MySQLInput, XmlInputpublic abstract class SerialInput
extends java.lang.Object
This class puts several restrictions on the method invocation sequence. Methods must be called in the following order:
inputMetadata once.
inputExample as many times as needed to read all
the data.
SerialOutput,
Metadata,
Example,
SerialIOException| Modifier and Type | Method | Description |
|---|---|---|
abstract Example |
inputExample() |
Reads the next example from the data reprezentation.
|
abstract Metadata |
inputMetadata() |
Reads the metadata (attributes and file's information) from the data
reprezentation.
|
public abstract Metadata inputMetadata() throws SerialIOException
Metadata objectSerialIOException - if an error is detected in data reprezentationpublic abstract Example inputExample() throws SerialIOException
null when end of data has been reached.
This method is allowed to return reference to a single instance of
Example class, modifying it during invocations.
null when end of data has been reachedSerialIOException - if an error is detected in data reprezentation