|
||||||||||
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.InterchangeSink
public class InterchangeSink
A sink for generating interchange template copies from data objects.
Note that this implementation is not synchronized. If multiple threads use an instance concurrently, it must be synchronized externally.
Sink
,
Serialized FormConstructor Summary | |
---|---|
InterchangeSink()
Constructs a new instance. |
|
InterchangeSink(InterchangeSink clone)
Constructs a new instance cloned from clone . |
|
InterchangeSink(OutputStream stream)
Constructs a new instance which will write to stream . |
|
InterchangeSink(Writer writer)
Constructs a new instance which will write to writer . |
Method Summary | |
---|---|
Object |
clone()
|
String |
getContent()
Returns the content of the template. |
void |
readContent(Reader reader)
Reads the content from the supplied reader. |
void |
setContent(String content)
Sets the content of the template. |
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 InterchangeSink()
public InterchangeSink(InterchangeSink clone)
clone
.
clone
- The instance to clone.public InterchangeSink(OutputStream stream)
stream
.
stream
- The stream to write the data to.public InterchangeSink(Writer writer)
writer
.
writer
- The writer to write the data to.Method Detail |
---|
public String getContent()
public void setContent(String content)
content
- The templates content.public void readContent(Reader reader) throws IOException
reader
- The reader from which the content should be read.
IOException
- If there is an error reading from reader
.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 |