net.sf.cotta.io
Class InputFactory
java.lang.Object
net.sf.cotta.io.InputFactory
public class InputFactory
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
InputFactory
public InputFactory(InputStreamFactory inputStreamFactory,
java.lang.String defaultEncoding)
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()