Class CustomCharArrayReader
- java.lang.Object
-
- com.virtuslab.using_directives.custom.CustomCharArrayReader
-
public class CustomCharArrayReader extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description char[]bufcharchintcharOffsetbooleandecodeUnijava.util.function.BiConsumer<java.lang.String,java.lang.Integer>errorintlastCharOffsetintlineStartOffsetintstartFrom
-
Constructor Summary
Constructors Constructor Description CustomCharArrayReader(char[] buf, java.util.function.BiConsumer<java.lang.String,java.lang.Integer> error)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description chargetc()CustomCharArrayReadergetLookaheadCharArrayReader()booleanisAtEnd()booleanisUnicodeEscape()charlookaheadChar()voidnextChar()voidnextRawChar()
-
-
-
Field Detail
-
buf
public char[] buf
-
startFrom
public int startFrom
-
decodeUni
public boolean decodeUni
-
error
public java.util.function.BiConsumer<java.lang.String,java.lang.Integer> error
-
ch
public char ch
-
charOffset
public int charOffset
-
lastCharOffset
public int lastCharOffset
-
lineStartOffset
public int lineStartOffset
-
-
Method Detail
-
isUnicodeEscape
public boolean isUnicodeEscape()
-
nextChar
public void nextChar()
-
getc
public char getc()
-
nextRawChar
public void nextRawChar()
-
isAtEnd
public boolean isAtEnd()
-
getLookaheadCharArrayReader
public CustomCharArrayReader getLookaheadCharArrayReader()
-
lookaheadChar
public char lookaheadChar()
-
-