public final class InputBuffer extends Object implements IParserInput
EOF
Constructor and Description |
---|
InputBuffer(char[] input)
Creates a new InputBuffer for the given char[].
|
Modifier and Type | Method and Description |
---|---|
int |
consume()
Gets the next character from the input and moves the position forward 1.
|
boolean |
equals(Object object) |
int |
getInputSize()
Returns the inputSize.
|
int |
getPosition()
Gets the position marker in the input.
|
int |
hashCode() |
int |
peek()
Gets the next character from the input but maintains the position.
|
void |
setPosition(int position)
Sets the position of the input buffer to the given value.
|
public InputBuffer(char[] input)
input
- The char[] to use for our buffer.public int consume()
consume
in interface IParserInput
public int peek()
peek
in interface IParserInput
public int getPosition()
getPosition
in interface IParserInput
public int getInputSize()
public void setPosition(int position)
setPosition
in interface IParserInput
position
- The position to set.Copyright © 2017 Kevoree Project. All rights reserved.