Class CharsInput
java.lang.Object
jodd.json.CharsInput
- All Implemented Interfaces:
CharSequence
- Direct Known Subclasses:
CharArrayInput, CharSequenceInput
Scanner over an input that consist of characters.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CharSequence
charAt, chars, codePoints, getChars, isEmpty, subSequence, toString
-
Field Details
-
ndx
protected int ndxCurrent position. -
total
protected final int total
-
-
Constructor Details
-
CharsInput
public CharsInput(int total)
-
-
Method Details
-
length
public int length()Returns the total size of the input.- Specified by:
lengthin interfaceCharSequence
-
charAtNdx
public abstract char charAtNdx()Returns character at current position. -
subString
Returns a substring. -
isAtTheEnd
public boolean isAtTheEnd() -
isEnd
public boolean isEnd()
-