net.sf.cotta.io
Class OutputManager

java.lang.Object
  extended by net.sf.cotta.io.ResourceManager<OutputProcessor>
      extended by net.sf.cotta.io.OutputManager

public class OutputManager
extends ResourceManager<OutputProcessor>

Output resource management class to be used through Output


Constructor Summary
protected OutputManager(OutputStreamFactory streamFactory, java.lang.String defaultEncoding)
           
 
Method Summary
 java.io.BufferedWriter bufferedWriter()
           
 java.io.OutputStream outputStream()
           
protected  TPath path()
           
 java.io.PrintWriter printWriter()
           
protected  void process(OutputProcessor processor)
           
static Output with(java.io.OutputStream stream)
          Deprecated. moved to Output
static Output with(OutputStreamFactory streamFactory)
          Deprecated. moved to Output
static Output with(OutputStreamFactory streamFactory, java.lang.String defaultEncoding)
          Deprecated.  
static Output with(java.io.OutputStream stream, java.lang.String defaultEncoding)
          Deprecated. moved to Output
 java.io.Writer writer()
           
 java.io.Writer writer(java.lang.String encoding)
           
 
Methods inherited from class net.sf.cotta.io.ResourceManager
open, registerResource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OutputManager

protected OutputManager(OutputStreamFactory streamFactory,
                        java.lang.String defaultEncoding)
Method Detail

outputStream

public java.io.OutputStream outputStream()
                                  throws TIoException
Throws:
TIoException

writer

public java.io.Writer writer()
                      throws TIoException
Throws:
TIoException

writer

public java.io.Writer writer(java.lang.String encoding)
                      throws TIoException
Throws:
TIoException

bufferedWriter

public java.io.BufferedWriter bufferedWriter()
                                      throws TIoException
Throws:
TIoException

printWriter

public java.io.PrintWriter printWriter()
                                throws TIoException
Throws:
TIoException

process

protected void process(OutputProcessor processor)
                throws java.io.IOException
Specified by:
process in class ResourceManager<OutputProcessor>
Throws:
java.io.IOException

path

protected TPath path()
Specified by:
path in class ResourceManager<OutputProcessor>

with

@Deprecated
public static Output with(java.io.OutputStream stream)
Deprecated. moved to Output

Creates the output instance with the given output stream and use system encoding

Parameters:
stream - output stream
Returns:
output instance

with

@Deprecated
public static Output with(java.io.OutputStream stream,
                                     java.lang.String defaultEncoding)
Deprecated. moved to Output

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

@Deprecated
public static Output with(OutputStreamFactory streamFactory)
Deprecated. moved to Output

Create the output instance with the stream factory and use system encoding

Parameters:
streamFactory - stream factory
Returns:
output instance

with

@Deprecated
public static Output with(OutputStreamFactory streamFactory,
                                     java.lang.String defaultEncoding)
Deprecated. 

Creates the output instance

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