private static class CrimsonBugWorkaround.BlockEnum
extends Object
implements Enumeration
Modifier and Type | Field and Description |
---|---|
(package private) static int |
BLOCK_SIZE |
(package private) boolean |
eof |
(package private) InputStream |
in |
(package private) byte[] |
inBuf |
(package private) int |
inBufLen |
(package private) byte[] |
outBuf |
(package private) int |
outBufLen |
(package private) byte |
prev |
Constructor and Description |
---|
BlockEnum(InputStream in) |
Modifier and Type | Method and Description |
---|---|
private void |
fixBuf()
Scan through the input buffer, looking for the suspicious pair of
characters and sticking a space between them.
|
boolean |
hasMoreElements()
Tells whether there are more blocks to read
|
Object |
nextElement()
Gets an InputStream for the next block of data
|
static final int BLOCK_SIZE
InputStream in
byte[] inBuf
int inBufLen
byte[] outBuf
int outBufLen
boolean eof
byte prev
public boolean hasMoreElements()
hasMoreElements
in interface Enumeration
public Object nextElement()
nextElement
in interface Enumeration
private void fixBuf()