public class ScanBuffer
extends java.lang.Object
Constructor and Description |
---|
ScanBuffer(int size)
Create scan buffer.
|
ScanBuffer(java.lang.String scanString,
boolean caseSensitive)
Create scan buffer.
|
Modifier and Type | Method and Description |
---|---|
int |
append(int newByte)
Append byte.
|
void |
clear(int i)
Clear scan buffer at position.
|
void |
flush() |
byte[] |
getBuffer() |
java.lang.String |
getScanString()
Get scan string.
|
boolean |
hasData()
Has scan buffer any data?
|
boolean |
match() |
void |
resetPosition()
Reset scan buffer position.
|
void |
setScanString(java.lang.String stringToken,
boolean caseSensitive) |
int |
size()
Return scan buffer size.
|
public ScanBuffer(int size)
size
- the sizepublic ScanBuffer(java.lang.String scanString, boolean caseSensitive)
scanString
- the scan stringcaseSensitive
- true if case sensitive, false if notpublic int size()
public void resetPosition()
public java.lang.String getScanString()
public void setScanString(java.lang.String stringToken, boolean caseSensitive)
public int append(int newByte)
newByte
- the bytepublic void flush()
public boolean match()
public boolean hasData()
public void clear(int i)
i
- the positionpublic byte[] getBuffer()