|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.cotta.io.ResourceManager<InputProcessor>
net.sf.cotta.io.InputManager
public class InputManager
InputManager for input resource management. This class is to be used
through Input
| Constructor Summary | |
|---|---|
protected |
InputManager(InputStreamFactory streamFactory,
java.lang.String defaultEncoding)
|
| Method Summary | |
|---|---|
java.io.BufferedReader |
bufferedReader()
|
java.nio.channels.FileChannel |
channel()
|
void |
clean(java.nio.MappedByteBuffer buffer)
Clean up the mapped byte buffer so that the mapped file can be accessed. |
java.io.InputStream |
inputStream()
|
java.io.LineNumberReader |
lineNumberReader()
|
protected TPath |
path()
|
protected void |
process(InputProcessor processor)
|
java.io.Reader |
reader()
|
java.io.Reader |
reader(java.lang.String encoding)
|
static Input |
with(java.io.InputStream stream)
Deprecated. Moved to Input |
static Input |
with(InputStreamFactory streamFactory)
Deprecated. Moved to Input |
static Input |
with(InputStreamFactory streamFactory,
java.lang.String encoding)
Deprecated. Moved to Input |
static Input |
with(java.io.InputStream stream,
java.lang.String encoding)
Deprecated. Moved to Input |
| 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 |
|---|
protected InputManager(InputStreamFactory streamFactory,
java.lang.String defaultEncoding)
| Method Detail |
|---|
public java.io.InputStream inputStream()
throws TIoException
TIoException
public java.io.Reader reader()
throws TIoException
TIoException
public java.io.Reader reader(java.lang.String encoding)
throws TIoException
TIoException
public java.io.BufferedReader bufferedReader()
throws TIoException
TIoException
public java.io.LineNumberReader lineNumberReader()
throws TIoException
TIoException
public java.nio.channels.FileChannel channel()
throws TIoException
TIoException
protected void process(InputProcessor processor)
throws java.io.IOException
process in class ResourceManager<InputProcessor>java.io.IOExceptionprotected TPath path()
path in class ResourceManager<InputProcessor>public void clean(java.nio.MappedByteBuffer buffer)
buffer - the buffer to clean up@Deprecated public static Input with(java.io.InputStream stream)
stream - the input stream to process
@Deprecated
public static Input with(java.io.InputStream stream,
java.lang.String encoding)
stream - the input stream to processencoding - encoding used when creating readers
@Deprecated public static Input with(InputStreamFactory streamFactory)
streamFactory - input stream factory
@Deprecated
public static Input with(InputStreamFactory streamFactory,
java.lang.String encoding)
streamFactory - input stream factoryencoding - encoding used to create readers
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||