public class PushbackString extends AbstractPushbackSequence<Character>
Encoder| Constructor and Description |
|---|
PushbackString(String input) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext()
Determine if this sequence has another element.
|
int |
index()
Get the current index of the PushbackString.
|
static boolean |
isHexDigit(Character c)
Returns true if the parameter character is a hexidecimal digit 0 through
9, a through f, or A through F.
|
static boolean |
isOctalDigit(Character c)
Returns true if the parameter character is an octal digit 0 through 7.
|
void |
mark()
Mark the location of the current index.
|
Character |
next()
Return the next element in the Sequence and increment the current index.
|
Character |
nextHex()
Return the next element in the Sequence in Hex format and increment the current index.
|
Character |
nextOctal()
Return the next element in the Sequence in Octal format and increment the current index.
|
Character |
peek()
Return the next element in the Sequence without affecting the current index.
|
boolean |
peek(Character c)
Test to see if the next element in the Sequence matches the supplied value without affecting the current index.
|
String |
remainder()
Not at all sure what this method is intended to do.
|
void |
reset()
Set the index back to the last marked location.
|
pushbackpublic PushbackString(String input)
input - Construct a PushbackString with the specified String.public int index()
AbstractPushbackSequenceindex in interface PushbackSequence<Character>index in class AbstractPushbackSequence<Character>public boolean hasNext()
AbstractPushbackSequencehasNext in interface PushbackSequence<Character>hasNext in class AbstractPushbackSequence<Character>public Character next()
PushbackSequencepublic Character nextHex()
PushbackSequencepublic Character nextOctal()
PushbackSequencepublic static boolean isHexDigit(Character c)
c - public static boolean isOctalDigit(Character c)
c - public Character peek()
PushbackSequencepublic boolean peek(Character c)
PushbackSequencec - The value to match against.public void mark()
public void reset()
public String remainder()
Copyright © 2019 The Open Web Application Security Project (OWASP). All rights reserved.