|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.c24.io.api.presentation.Sink
biz.c24.io.api.presentation.TagValuePairSink
public class TagValuePairSink
A sink for generating simple tag value pair output from a data object.
Note that this implementation is not synchronized. If multiple threads use an instance concurrently, it must be synchronized externally.
Sink
,
Serialized FormConstructor Summary | |
---|---|
TagValuePairSink()
Constructs a new instance. |
|
TagValuePairSink(OutputStream stream)
Constructs a new instance which will write to stream . |
|
TagValuePairSink(TagValuePairSink clone)
Constructs a new instance cloned from clone . |
|
TagValuePairSink(Writer writer)
Constructs a new instance which will write to writer . |
Method Summary | |
---|---|
Object |
clone()
|
boolean |
isHumanReadable()
Deprecated. Use isIndenting() instead. |
boolean |
isIndenting()
Returns whether human readable output will be produced, i.e. with newlines and indentations. |
void |
setHumanReadable(boolean humanReadable)
Deprecated. Use setIndenting(boolean) instead. |
void |
setIndenting(boolean indenting)
Sets whether human readable output will be produced. |
void |
writeObject(ComplexDataObject obj)
Writes an object to the writer or output stream that has been set. |
Methods inherited from class biz.c24.io.api.presentation.Sink |
---|
checkInit, clearBatchIterators, getEncoding, getOutputStream, getWriter, registerBatchIterator, setEncoding, setOutputStream, setWriter, stream, unregisterBatchIterator, writer |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TagValuePairSink()
public TagValuePairSink(TagValuePairSink clone)
clone
.
clone
- The instance to clone.public TagValuePairSink(OutputStream stream)
stream
.
stream
- The stream to write the tag value pair data to.public TagValuePairSink(Writer writer)
writer
.
writer
- The writer to write the tag value pair data to.Method Detail |
---|
public boolean isIndenting()
public void setIndenting(boolean indenting)
indenting
- The new value.public boolean isHumanReadable()
isIndenting()
instead.
public void setHumanReadable(boolean humanReadable)
setIndenting(boolean)
instead.
humanReadable
- The new value.public void writeObject(ComplexDataObject obj) throws IOException
Sink
writeObject
in class Sink
obj
- The object to be written.
IOException
- If the complete object could not be written for any reason.public Object clone()
clone
in class Sink
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |