|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.sf.cotta.io.Input
public class Input
Input processing class used to expose the API in the right context
| Constructor Summary | |
|---|---|
Input(InputManager manager)
|
|
| Method Summary | |
|---|---|
void |
read(InputProcessor processor)
Read the file with an input processor |
void |
readLines(LineProcessor lineProcessor)
Read the file with a line processor |
static Input |
with(java.io.InputStream stream)
A static factory to create an Input instance for processing the input stream with system default encoding |
static Input |
with(InputStreamFactory streamFactory)
A static factory to create an Input instance for processing the input stream to be created by the InputStreamFactory with system default encoding |
static Input |
with(InputStreamFactory streamFactory,
java.lang.String encoding)
A static factory to create an Input instance for processing the input stream to be created by the InputStreamFactory with provided encoding |
static Input |
with(java.io.InputStream stream,
java.lang.String encoding)
A static factory to create an Input instance for processing the input stream with the given encoding when creating readers |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Input(InputManager manager)
| Method Detail |
|---|
public void read(InputProcessor processor)
throws TIoException
processor - processor for the input
TIoException - error in reading the file
public void readLines(LineProcessor lineProcessor)
throws TIoException
lineProcessor - line processor for the lines
TIoException - error in reading the filepublic static Input with(java.io.InputStream stream)
stream - the input stream to process
public static Input with(java.io.InputStream stream,
java.lang.String encoding)
stream - the input stream to processencoding - encoding used when creating readers
public static Input with(InputStreamFactory streamFactory)
streamFactory - input stream factory
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 | ||||||||