public abstract class AbstractByteLineScanner extends Object
| Constructor and Description |
|---|
AbstractByteLineScanner(InputStream is) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that are still available in the buffer after
the reading has been aborted.
|
byte[] |
availableBuffer()
Returns the bytes that are still available in the buffer after
the reading has been aborted.
|
abstract boolean |
newLine(byte[] buf,
int start,
int len)
Called whenever a new line was encountered.
|
void |
push(byte[] bytes)
Push the given bytes such that they are read first before the
bytes at the input stream.
|
void |
scan() |
public AbstractByteLineScanner(InputStream is)
public void scan()
throws IOException
IOExceptionpublic int available()
public byte[] availableBuffer()
public void push(byte[] bytes)
bytes - public abstract boolean newLine(byte[] buf,
int start,
int len)
buf - start - len - Copyright © 2017. All rights reserved.