net.sf.cotta.io
Class Output

java.lang.Object
  extended by net.sf.cotta.io.Output

public class Output
extends java.lang.Object


Constructor Summary
Output(OutputManager manager)
           
 
Method Summary
static Output with(java.io.OutputStream stream)
          Creates the output instance with the given output stream and use system encoding
static Output with(OutputStreamFactory streamFactory)
          Create the output instance with the stream factory and use system encoding
static Output with(OutputStreamFactory streamFactory, java.lang.String defaultEncoding)
          Creates the output instance
static Output with(java.io.OutputStream stream, java.lang.String defaultEncoding)
          Create the output instance with the given output steram and default encoding
 void write(OutputProcessor processor)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Output

public Output(OutputManager manager)
Method Detail

write

public void write(OutputProcessor processor)
           throws TIoException
Throws:
TIoException

with

public static Output with(java.io.OutputStream stream)
Creates the output instance with the given output stream and use system encoding

Parameters:
stream - output stream
Returns:
output instance

with

public static Output with(java.io.OutputStream stream,
                          java.lang.String defaultEncoding)
Create the output instance with the given output steram and default encoding

Parameters:
stream - output stream
defaultEncoding - default encoding for creating the writers
Returns:
output instance

with

public static Output with(OutputStreamFactory streamFactory)
Create the output instance with the stream factory and use system encoding

Parameters:
streamFactory - stream factory
Returns:
output instance

with

public static Output with(OutputStreamFactory streamFactory,
                          java.lang.String defaultEncoding)
Creates the output instance

Parameters:
streamFactory - output stream factory
defaultEncoding - default encoding for the writers
Returns:
output instance