net.sf.cotta.io
Class InputFactory

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

public class InputFactory
extends java.lang.Object


Constructor Summary
InputFactory(InputStreamFactory inputStreamFactory, java.lang.String defaultEncoding)
           
 
Method Summary
 java.io.BufferedReader bufferedReader()
           
 java.nio.channels.FileChannel inputChannel()
           
 java.io.InputStream inputStream()
           
 java.io.LineNumberReader lineNumberReader()
           
 TPath path()
           
 java.io.Reader reader()
          Create a Reader using the default encoding
 java.io.Reader reader(java.lang.String encoding)
          Create a Reader using the provided encoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InputFactory

public InputFactory(InputStreamFactory inputStreamFactory,
                    java.lang.String defaultEncoding)
Method Detail

inputStream

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

reader

public java.io.Reader reader()
                      throws TIoException
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
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
Throws:
TIoException

lineNumberReader

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

inputChannel

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

path

public TPath path()