public class Buffer extends Object
| Modifier and Type | Method and Description |
|---|---|
void |
assertInvariant() |
String |
createString()
Returns the string between start and the current position.
|
void |
eat()
Move start forward to the current position.
|
int |
getEndOfs() |
void |
getPosition(Position result) |
void |
open(Position position,
Reader src) |
int |
read()
Advances the end and returns the character at this positio.
|
void |
resetEndOfs(int ofs)
Sets the current end ofs by to the specified value
|
String |
toString() |
boolean |
wasEof()
Returns true if the end of file has been seen and the buffer is at it's end.
|
public void assertInvariant()
public int getEndOfs()
public void resetEndOfs(int ofs)
ofs - < getEndOfs()public boolean wasEof()
public int read()
throws IOException
IOExceptionpublic void eat()
public String createString()
public void getPosition(Position result)
Copyright © 1998–2017 1&1. All rights reserved.