|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.hpi.fgis.dude.output.AbstractDuDeOutput de.hpi.fgis.dude.output.SimpleTextOutput
public class SimpleTextOutput
SimpleTextOutput
writes the passed DuDeObject
pair to an OutputStream
line by line.
Field Summary | |
---|---|
static String |
DEFAULT_SEPARATOR
The default separator string that is used for separating both DuDeObjects , if no separator string is passed. |
Fields inherited from class de.hpi.fgis.dude.output.AbstractDuDeOutput |
---|
outputStream |
Constructor Summary | |
---|---|
protected |
SimpleTextOutput()
Internal constructor for Jsonable deserialization. |
|
SimpleTextOutput(File out)
Initializes a new SimpleTextOutput with the passed parameters. |
|
SimpleTextOutput(File out,
String hdr)
Initializes a new SimpleTextOutput with the passed parameters. |
|
SimpleTextOutput(File out,
String hdr,
String ftr)
Initializes a new SimpleTextOutput with the passed parameters. |
|
SimpleTextOutput(OutputStream out)
Initializes a new SimpleTextOutput with the passed parameters. |
|
SimpleTextOutput(OutputStream out,
String hdr)
Initializes a new SimpleTextOutput with the passed parameters. |
|
SimpleTextOutput(OutputStream out,
String hdr,
String ftr)
Initializes a new SimpleTextOutput with the passed parameters. |
Method Summary | |
---|---|
void |
write(DuDeObjectPair pair)
Writes the DuDeObject pair line by line. |
Methods inherited from class de.hpi.fgis.dude.output.AbstractDuDeOutput |
---|
close, fromJson, getDefaultFooter, getDefaultHeader, printDataEnabled, toJson, withData, withoutData, writeDuplicatesOnly, writelnToStream, writeToStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String DEFAULT_SEPARATOR
DuDeObjects
, if no separator string is passed.
Constructor Detail |
---|
public SimpleTextOutput(OutputStream out) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The OutputStream
where the data is written to.
IOException
- If an error occurs while accessing the OutputStream
.public SimpleTextOutput(OutputStream out, String hdr) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The OutputStream
where the data is written to.hdr
- The header that will be written in front of the actual data.
IOException
- If an error occurs while accessing the OutputStream
.public SimpleTextOutput(OutputStream out, String hdr, String ftr) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The OutputStream
where the data is written to.hdr
- The header that will be written in front of the actual data.ftr
- The footer that will be written after the actual data.
IOException
- If an error occurs while accessing the OutputStream
.public SimpleTextOutput(File out) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The File
where the data is written to.
IOException
- If an error occurs while accessing the File
.public SimpleTextOutput(File out, String hdr) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The File
where the data is written to.hdr
- The header that will be written in front of the actual data.
IOException
- If an error occurs while accessing the File
.public SimpleTextOutput(File out, String hdr, String ftr) throws IOException
SimpleTextOutput
with the passed parameters.
out
- The File
where the data is written to.hdr
- The header that will be written in front of the actual data.ftr
- The footer that will be written after the actual data.
IOException
- If an error occurs while accessing the File
.protected SimpleTextOutput()
Jsonable
deserialization.
Method Detail |
---|
public void write(DuDeObjectPair pair) throws IOException
DuDeObject
pair line by line.
write
in interface DuDeOutput
write
in class AbstractDuDeOutput
pair
- A pair of two DuDeObject
s that are written into an OutputStream
.
IOException
- If an error occurs while writing onto the stream.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |