public class IsfSimpleOutput extends SerialOutput
SerialOutput
implementation for writting
data to ISF files. Objects of this class are able to generate 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 written.
It is simplified version of IsfOutput
, written for back
compatibility with JAMM software and other older programs.
IsfInput
Constructor | Description |
---|---|
IsfSimpleOutput(java.io.OutputStream stream) |
Creates ISF file writer and attaches it to a stream.
|
Modifier and Type | Method | Description |
---|---|---|
void |
done() |
Finishes the write process.
|
void |
outputExample(Example example) |
Writes the next example to the ISF file.
|
void |
outputMetadata(Metadata metadata) |
Writes the metadata (attributes and file's information) to the data
representation.
|
public IsfSimpleOutput(java.io.OutputStream stream)
stream
- the stream to write data topublic void outputMetadata(Metadata metadata)
outputMetadata
in class SerialOutput
metadata
- the metadata to be written as Metadata
objectSerialOutput.outputMetadata(pl.poznan.put.cs.idss.jrs.types.Metadata)
public void outputExample(Example example)
outputExample
in class SerialOutput
example
- the example to be writtenSerialOutput.outputExample(pl.poznan.put.cs.idss.jrs.types.Example)
public void done()
done
in class SerialOutput
SerialOutput.done()