|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
org.encog.parse.PeekableInputStream
public class PeekableInputStream
This is a special input stream that allows the program to peek one or more characters ahead in the file.
| Field Summary | |
|---|---|
static int |
INITIAL_DEPTH
The depth to peek. |
| Constructor Summary | |
|---|---|
PeekableInputStream(InputStream is)
The constructor accepts an InputStream to setup the object. |
|
| Method Summary | |
|---|---|
int |
peek()
Peek at the next character from the stream. |
int |
peek(int depth)
Peek at a specified depth. |
boolean |
peek(String str)
Peek ahead and see if the specified string is present. |
int |
read()
Read a single byte from the stream. |
long |
skip(long count)
Skip the specified number of bytes. |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, read, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int INITIAL_DEPTH
| Constructor Detail |
|---|
public PeekableInputStream(InputStream is)
is - The InputStream to parse.| Method Detail |
|---|
public int peek()
public int peek(int depth)
depth - The depth to check.
public boolean peek(String str)
str - The string we are looking for.
public int read()
read in class InputStreampublic long skip(long count)
skip in class InputStreamcount - The number of bytes to skip.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||