|
GXPARSE hosted by | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ca.gorman.util.scan.InputControl.Default
public static class InputControl.Default
An implementation of InputControl
with methods that
do nothing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface ca.gorman.util.scan.InputControl |
---|
InputControl.Default |
Constructor Summary | |
---|---|
InputControl.Default()
|
Method Summary | |
---|---|
int |
discard(int n)
Discard a leading prefix of characters from the buffer. |
boolean |
expand()
Increase the amount of data in the buffer, if the buffer supports expansion. |
int |
fill()
Make more characters available in a buffer with free space. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public InputControl.Default()
Method Detail |
---|
public boolean expand() throws IOException
Expandable
Increase the amount of data in the buffer, if the buffer supports expansion.
Expansion is not guaranteed, because the buffer may not support expansion or because the current state of the buffer (or its data source) may not permit expansion.
A successful expansion of a full buffer will increase the memory used by the buffer. A buffer with free space may simply add more data to the free space instead of acquiring and filling additional memory.
expand
in interface Expandable
IOException
public int fill() throws IOException
InputControl
Make more characters available in a buffer with free space.
fill
in interface InputControl
IOException
public int discard(int n)
InputControl
Discard a leading prefix of characters from the buffer.
discard
in interface InputControl
n
- The number of characters to be discarded
|
GXPARSE download | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |