public class XmlInput extends SerialInput
inputMetadata()
inputExample()
Constructor | Description |
---|---|
XmlInput(java.io.InputStream stream) |
XmlInput class constructor.
Creates a parser. |
XmlInput(java.io.InputStream stream,
ParseLog log) |
XmlInput class constructor.
Creates a parser and set reference to ParseLog class obiect. |
Modifier and Type | Method | Description |
---|---|---|
Example |
inputExample() |
Reads the next example from the data reprezentation.
|
Metadata |
inputMetadata() |
Reads the metadata (attributes and file's information) from the data
reprezentation.
|
public XmlInput(java.io.InputStream stream, ParseLog log) throws SerialIOException
stream
- Input stream with XML document to parse;log
- Takes all warning, error and fatal error messages.SerialIOException
- If couldn't create a parser.public XmlInput(java.io.InputStream stream) throws SerialIOException
stream
- Input stream with XML document.SerialIOException
- If couldn't create a parser.public Metadata inputMetadata() throws SerialIOException
SerialInput
inputMetadata
in class SerialInput
Metadata
objectSerialIOException
- if an error is detected in data reprezentationSerialInput.inputMetadata()
public Example inputExample() throws SerialIOException
SerialInput
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.
inputExample
in class SerialInput
null
when end of data has been reachedSerialIOException
- if an error is detected in data reprezentationSerialInput.inputExample()