|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.io.InputStream
org.encog.bot.html.PeekableInputStream
public class PeekableInputStream
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(java.io.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. |
int |
read()
Read a single byte from the stream. |
| Methods inherited from class java.io.InputStream |
|---|
available, close, mark, markSupported, read, read, reset, skip |
| 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(java.io.InputStream is)
is - The InputStream to parse.| Method Detail |
|---|
public int peek()
throws java.io.IOException
java.io.IOException - If an I/O exception occurs.
public int peek(int depth)
throws java.io.IOException
depth - The depth to check.
java.io.IOException - If an I/O exception occurs.
public int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException
|
The Encog Project | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||