net.sf.cotta.io
Class IoFactory

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

Deprecated. use InputFactory or OutputFactory

@Deprecated
public class IoFactory
extends java.lang.Object

IoFactory used to create I/O objects


Constructor Summary
IoFactory(StreamFactory streamFactory)
          Deprecated.  
IoFactory(StreamFactory streamFactory, java.lang.String defaultEncoding)
          Deprecated.  
 
Method Summary
 java.io.BufferedReader bufferedReader()
          Deprecated.  
 java.io.BufferedWriter bufferedWriter(OutputMode mode)
          Deprecated.  
 java.nio.channels.FileChannel inputChannel()
          Deprecated.  
 java.io.InputStream inputStream()
          Deprecated.  
 java.io.LineNumberReader lineNumberReader()
          Deprecated.  
 java.io.OutputStream outputStream(OutputMode mode)
          Deprecated.  
 TPath path()
          Deprecated.  
 java.io.PrintWriter printWriter(OutputMode mode)
          Deprecated.  
 java.io.Reader reader()
          Deprecated. Create a Reader using the default encoding
 java.io.Reader reader(java.lang.String encoding)
          Deprecated. Create a Reader using the provided encoding
 java.io.Writer writer(OutputMode mode)
          Deprecated.  
 java.io.Writer writer(OutputMode mode, java.lang.String encoding)
          Deprecated.  
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IoFactory

public IoFactory(StreamFactory streamFactory)
Deprecated. 

IoFactory

public IoFactory(StreamFactory streamFactory,
                 java.lang.String defaultEncoding)
Deprecated. 
Method Detail

inputStream

public java.io.InputStream inputStream()
                                throws TIoException
Deprecated. 
Throws:
TIoException

outputStream

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

reader

public java.io.Reader reader()
                      throws TIoException
Deprecated. 
Create a Reader using the default encoding

Returns:
a Reader with the default encoding
Throws:
TIoException - for any IO error

reader

public java.io.Reader reader(java.lang.String encoding)
                      throws TIoException
Deprecated. 
Create a Reader using the provided encoding

Parameters:
encoding - encoding for the reader
Returns:
Reader with specified encoding
Throws:
TIoException - if any IOException thrown

bufferedReader

public java.io.BufferedReader bufferedReader()
                                      throws TIoException
Deprecated. 
Throws:
TIoException

lineNumberReader

public java.io.LineNumberReader lineNumberReader()
                                          throws TIoException
Deprecated. 
Throws:
TIoException

writer

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

writer

public java.io.Writer writer(OutputMode mode,
                             java.lang.String encoding)
                      throws TIoException
Deprecated. 
Throws:
TIoException

bufferedWriter

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

printWriter

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

path

public TPath path()
Deprecated. 

inputChannel

public java.nio.channels.FileChannel inputChannel()
                                           throws TIoException
Deprecated. 
Throws:
TIoException