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 TypeMethodDescriptionvoidclose()protected voidmovePosition(char ch) voidpushback(char ch) intread()intread(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:
readin classReader- Throws:
IOException
-
read
- Specified by:
readin classReader- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein classReader- Throws:
IOException
-
getLastSnippet
-