|
GXPARSE hosted by |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectca.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
ExpandableIncrease 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 ExpandableIOException
public int fill()
throws IOException
InputControlMake more characters available in a buffer with free space.
fill in interface InputControlIOExceptionpublic int discard(int n)
InputControlDiscard a leading prefix of characters from the buffer.
discard in interface InputControln - 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 | ||||||||