public class IsfInput extends SerialInput
SerialInput implementation for reading
data from ISF files. Object of this class are able to parse ISF files.
Note that this class never closes the stream it uses. It is user's responsibility to close the stream after file has been read.
IsfOutput,
ParseLog,
SerialIOException| Constructor | Description |
|---|---|
IsfInput(java.io.InputStream stream) |
Creates ISF file reader and attaches it to a stream.
|
IsfInput(java.io.InputStream stream,
ParseLog log) |
Creates ISF file reader and attaches it to a stream and message handler.
.
|
| Modifier and Type | Method | Description |
|---|---|---|
Example |
inputExample() |
Reads the next example from the ISF file.
|
Metadata |
inputMetadata() |
Reads the metadata (attributes and file's information) from the ISF file.
|
public IsfInput(java.io.InputStream stream)
stream - the stream to read data frompublic IsfInput(java.io.InputStream stream,
ParseLog log)
stream - the stream to read data fromlog - the ParseLog to output messages topublic Metadata inputMetadata() throws SerialIOException
inputMetadata in class SerialInputMetadata objectSerialIOException - when an error is encountered during reading
ISF fileSerialInput.inputMetadata()public Example inputExample() throws SerialIOException
null when end of data has been reached. This method is
returns reference to a single instance of Example class, modifying it
during invocations.inputExample in class SerialInputnull when end of data has been reachedSerialIOException - when an error is encountered during reading
ISF fileSerialInput.inputExample()