org.encog.parse
public class PeekableInputStream extends InputStream
Modifier and Type | Field and Description |
---|---|
static int |
INITIAL_DEPTH
The depth to peek.
|
Constructor and Description |
---|
PeekableInputStream(InputStream is)
The constructor accepts an InputStream to setup the object.
|
Modifier and Type | Method and Description |
---|---|
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.
|
available, close, mark, markSupported, read, read, reset
public static final int INITIAL_DEPTH
public PeekableInputStream(InputStream is)
is
- The InputStream to parse.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 InputStream
public long skip(long count)
skip
in class InputStream
count
- The number of bytes to skip.Copyright © 2014. All Rights Reserved.