|
||||||||||
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.DefaultSink
TextualSink
instead.
public class DefaultSink
Replaced by TextualSink
Constructor Summary | |
---|---|
DefaultSink()
Deprecated. Constructs a new instance. |
|
DefaultSink(DefaultSink clone)
Deprecated. Constructs a new instance cloned from clone . |
|
DefaultSink(OutputStream stream)
Deprecated. Constructs a new instance which will write to stream . |
|
DefaultSink(Writer writer)
Deprecated. Constructs a new instance which will write to writer . |
Method Summary | |
---|---|
protected void |
checkInit()
Deprecated. Used by subclasses to ensure a writer or output stream has been set. |
void |
clearBatchIterators()
Deprecated. Clears all batch iterators registered with this Sink. |
Object |
clone()
Deprecated. |
boolean |
equals(Object obj)
Deprecated. |
String |
getEncoding()
Deprecated. Get the character encoding for a byte stream. |
OutputStream |
getOutputStream()
Deprecated. Returns the output stream (optional operation). |
Writer |
getWriter()
Deprecated. Returns the writer (optional operation). |
int |
hashCode()
Deprecated. |
void |
registerBatchIterator(Class batchedClass,
Iterator batchIterator)
Deprecated. Register a batch iterator against a particular class of batch entry. |
void |
setEncoding(String encoding)
Deprecated. Set the character encoding for a byte stream. |
void |
setOutputStream(OutputStream stream)
Deprecated. Sets the output stream (optional operation). |
void |
setWriter(Writer writer)
Deprecated. Sets the writer (optional operation). |
protected OutputStream |
stream()
Deprecated. Used by subclasses to get a reference to the output stream object responsible for writing the data. |
String |
toString()
Deprecated. |
void |
unregisterBatchIterator(Class batchedClass)
Deprecated. Unregisters an iterator from a particular class of batch entry. |
void |
writeObject(ComplexDataObject obj)
Deprecated. Writes an object to the writer or output stream that has been set. |
protected Writer |
writer()
Deprecated. Used by subclasses to get a reference to the object responsible for writing the data. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultSink()
public DefaultSink(DefaultSink clone)
clone
.
clone
- The instance to clone.public DefaultSink(OutputStream stream)
stream
.
stream
- The stream to write the data to.public DefaultSink(Writer writer)
writer
.
writer
- The stream to write the data to.Method Detail |
---|
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 void setWriter(Writer writer)
Sink
setWriter
in class Sink
writer
- The new value.public Writer getWriter()
Sink
getWriter
in class Sink
public void setOutputStream(OutputStream stream)
Sink
setOutputStream
in class Sink
stream
- The new value.public OutputStream getOutputStream()
Sink
getOutputStream
in class Sink
public void setEncoding(String encoding)
Sink
setEncoding
in class Sink
encoding
- A string describing the character encoding. If null then UTF-8 will be used by default.public String getEncoding()
Sink
getEncoding
in class Sink
protected OutputStream stream()
Sink
stream
in class Sink
protected Writer writer() throws UnsupportedEncodingException
Sink
writer
in class Sink
UnsupportedEncodingException
- If the encoding is not supported.protected void checkInit()
Sink
checkInit
in class Sink
public void registerBatchIterator(Class batchedClass, Iterator batchIterator)
Sink
Sink.writeObject(biz.c24.io.api.data.ComplexDataObject)
method.
registerBatchIterator
in class Sink
batchedClass
- The class of the generated Element
, DataType
, or ComplexDataObject
to register the iterator against.batchIterator
- The iterator which will return the instances.public void unregisterBatchIterator(Class batchedClass)
Sink
unregisterBatchIterator
in class Sink
batchedClass
- The class which should be cleared from the map.Sink.registerBatchIterator(Class, java.util.Iterator)
public void clearBatchIterators()
Sink
clearBatchIterators
in class Sink
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
public String toString()
toString
in class Object
public Object clone()
clone
in class Sink
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |