public class XmlOutput extends SerialOutput
outputMetadata()
,outputExample()
,done()
Constructor | Description |
---|---|
XmlOutput(java.io.OutputStream stream) |
Class constructor.
|
XmlOutput(java.io.PrintStream stream) |
Class constructor.
|
Modifier and Type | Method | Description |
---|---|---|
void |
done() |
Finishes the write process.
|
void |
outputExample(Example example) |
Writes the next example to the data reprezentation.
|
void |
outputMetadata(Metadata metadata) |
Writes the metadata (attributes and file's information) to the data
reprezentation.
|
public XmlOutput(java.io.OutputStream stream)
stream
- The destination where the XML document is to be stored.public XmlOutput(java.io.PrintStream stream)
stream
- The destination where the XML document is to be stored.public void outputMetadata(Metadata metadata)
SerialOutput
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)
SerialOutput
outputExample
in class SerialOutput
example
- the example to be writtenSerialOutput.outputExample(pl.poznan.put.cs.idss.jrs.types.Example)
public void done()
SerialOutput
done
in class SerialOutput
SerialOutput.done()