Package com.github.skjolber.stcsv
Class RawReader
- java.lang.Object
-
- java.io.Reader
-
- com.github.skjolber.stcsv.RawReader
-
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
public abstract class RawReader extends Reader
Access to underlying reader, for error correction and such.
-
-
Constructor Summary
Constructors Constructor Description RawReader()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract booleanfill()Fill buffer with additional data from the underlying reader.abstract char[]getBuffer()abstract intgetLimit()Limit (so that index is less than limit).abstract intgetOffset()Index (relative to buffer)abstract booleanskipToCharacter(char c)-
Methods inherited from class java.io.Reader
close, mark, markSupported, nullReader, read, read, read, read, ready, reset, skip, transferTo
-
-
-
-
Method Detail
-
getBuffer
public abstract char[] getBuffer()
-
getOffset
public abstract int getOffset()
Index (relative to buffer)- Returns:
- offset
-
getLimit
public abstract int getLimit()
Limit (so that index is less than limit).- Returns:
- limit
-
fill
public abstract boolean fill() throws IOExceptionFill buffer with additional data from the underlying reader.- Returns:
- true if there was more left
- Throws:
IOException- if underlying reader throws exception
-
skipToCharacter
public abstract boolean skipToCharacter(char c) throws IOException- Throws:
IOException
-
-