public class IsfOutput extends SerialOutput
SerialOutput
implementation for writting
data to ISF files. Object 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.
IsfInput
Constructor | Description |
---|---|
IsfOutput(java.io.OutputStream stream) |
Creates ISF file writter 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
reprezentation.
|
public IsfOutput(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()