Package com.cedarsoftware.util.io
Class FastReader
java.lang.Object
java.io.Reader
com.cedarsoftware.util.io.FastReader
- All Implemented Interfaces:
Closeable
,AutoCloseable
,Readable
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
protected void
movePosition
(char ch) void
pushback
(char ch) int
read()
int
read
(char[] cbuf, int off, int len) Methods inherited from class java.io.Reader
mark, markSupported, nullReader, read, read, ready, reset, skip, transferTo
-
Field Details
-
line
protected int line -
col
protected int col
-
-
Constructor Details
-
FastReader
-
-
Method Details
-
pushback
- Throws:
IOException
-
movePosition
protected void movePosition(char ch) -
read
- Overrides:
read
in classReader
- Throws:
IOException
-
read
- Specified by:
read
in classReader
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Specified by:
close
in classReader
- Throws:
IOException
-
getLastSnippet
-