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.
|
pushback
public PushbackString(String input)
input
- Construct a PushbackString with the specified String.public int index()
AbstractPushbackSequence
index
in interface PushbackSequence<Character>
index
in class AbstractPushbackSequence<Character>
public boolean hasNext()
AbstractPushbackSequence
hasNext
in interface PushbackSequence<Character>
hasNext
in class AbstractPushbackSequence<Character>
public Character next()
PushbackSequence
public Character nextHex()
PushbackSequence
public Character nextOctal()
PushbackSequence
public static boolean isHexDigit(Character c)
c
- public static boolean isOctalDigit(Character c)
c
- public Character peek()
PushbackSequence
public boolean peek(Character c)
PushbackSequence
c
- The value to match against.public void mark()
public void reset()
public String remainder()
Copyright © 2023 The Open Worldwide Application Security Project (OWASP). All rights reserved.