biz.c24.io.api.presentation
Class DefaultSink

java.lang.Object
  extended by biz.c24.io.api.presentation.Sink
      extended by biz.c24.io.api.presentation.DefaultSink
All Implemented Interfaces:
Serializable, Cloneable

Deprecated. Use TextualSink instead.

public class DefaultSink
extends Sink

Replaced by TextualSink

See Also:
Serialized Form

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

DefaultSink

public DefaultSink()
Deprecated. 
Constructs a new instance.


DefaultSink

public DefaultSink(DefaultSink clone)
Deprecated. 
Constructs a new instance cloned from clone.

Parameters:
clone - The instance to clone.

DefaultSink

public DefaultSink(OutputStream stream)
Deprecated. 
Constructs a new instance which will write to stream.

Parameters:
stream - The stream to write the data to.

DefaultSink

public DefaultSink(Writer writer)
Deprecated. 
Constructs a new instance which will write to writer.

Parameters:
writer - The stream to write the data to.
Method Detail

writeObject

public void writeObject(ComplexDataObject obj)
                 throws IOException
Deprecated. 
Description copied from class: Sink
Writes an object to the writer or output stream that has been set.

Specified by:
writeObject in class Sink
Parameters:
obj - The object to be written.
Throws:
IOException - If the complete object could not be written for any reason.

setWriter

public void setWriter(Writer writer)
Deprecated. 
Description copied from class: Sink
Sets the writer (optional operation).

Overrides:
setWriter in class Sink
Parameters:
writer - The new value.

getWriter

public Writer getWriter()
Deprecated. 
Description copied from class: Sink
Returns the writer (optional operation).

Overrides:
getWriter in class Sink
Returns:
The writer.

setOutputStream

public void setOutputStream(OutputStream stream)
Deprecated. 
Description copied from class: Sink
Sets the output stream (optional operation).

Overrides:
setOutputStream in class Sink
Parameters:
stream - The new value.

getOutputStream

public OutputStream getOutputStream()
Deprecated. 
Description copied from class: Sink
Returns the output stream (optional operation).

Overrides:
getOutputStream in class Sink
Returns:
The stream.

setEncoding

public void setEncoding(String encoding)
Deprecated. 
Description copied from class: Sink
Set the character encoding for a byte stream. This method has no effect when the application provides a writer or when a sink instance store binary data.

Overrides:
setEncoding in class Sink
Parameters:
encoding - A string describing the character encoding. If null then UTF-8 will be used by default.

getEncoding

public String getEncoding()
Deprecated. 
Description copied from class: Sink
Get the character encoding for a byte stream. This value will be ignored when the application provides a writer or when a sink instance store binary data.

Overrides:
getEncoding in class Sink
Returns:
The encoding, or null if none was supplied.

stream

protected OutputStream stream()
Deprecated. 
Description copied from class: Sink
Used by subclasses to get a reference to the output stream object responsible for writing the data.

Overrides:
stream in class Sink
Returns:
The output stream.

writer

protected Writer writer()
                 throws UnsupportedEncodingException
Deprecated. 
Description copied from class: Sink
Used by subclasses to get a reference to the object responsible for writing the data.

Overrides:
writer in class Sink
Returns:
The writer.
Throws:
UnsupportedEncodingException - If the encoding is not supported.

checkInit

protected void checkInit()
Deprecated. 
Description copied from class: Sink
Used by subclasses to ensure a writer or output stream has been set.

Overrides:
checkInit in class Sink

registerBatchIterator

public void registerBatchIterator(Class batchedClass,
                                  Iterator batchIterator)
Deprecated. 
Description copied from class: Sink
Register a batch iterator against a particular class of batch entry.
Batch iterators provide a hook by which any number of instances can returned from the iterator and therefore appear in the output even though they are not referenced by the object supplied to the Sink.writeObject(biz.c24.io.api.data.ComplexDataObject) method.

Overrides:
registerBatchIterator in class Sink
Parameters:
batchedClass - The class of the generated Element, DataType, or ComplexDataObject to register the iterator against.
batchIterator - The iterator which will return the instances.

unregisterBatchIterator

public void unregisterBatchIterator(Class batchedClass)
Deprecated. 
Description copied from class: Sink
Unregisters an iterator from a particular class of batch entry.

Overrides:
unregisterBatchIterator in class Sink
Parameters:
batchedClass - The class which should be cleared from the map.
See Also:
Sink.registerBatchIterator(Class, java.util.Iterator)

clearBatchIterators

public void clearBatchIterators()
Deprecated. 
Description copied from class: Sink
Clears all batch iterators registered with this Sink.

Overrides:
clearBatchIterators in class Sink

hashCode

public int hashCode()
Deprecated. 
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Deprecated. 
Overrides:
equals in class Object

toString

public String toString()
Deprecated. 
Overrides:
toString in class Object

clone

public Object clone()
Deprecated. 
Specified by:
clone in class Sink


C24 Technologies © 2002-2012: All Rights Reserved.