|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.owasp.esapi.codecs.PushbackString
public class PushbackString
The pushback string is used by Codecs to allow them to push decoded characters back onto a string for further decoding. This is necessary to detect double-encoding.
Encoder
Constructor Summary | |
---|---|
PushbackString(String input)
|
Method Summary | |
---|---|
boolean |
hasNext()
|
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()
|
Character |
next()
|
Character |
nextHex()
|
Character |
nextOctal()
|
Character |
peek()
Return the next character without affecting the current index. |
boolean |
peek(char c)
Test to see if the next character is a particular value without affecting the current index. |
void |
pushback(Character c)
|
protected String |
remainder()
|
void |
reset()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PushbackString(String input)
input
- Method Detail |
---|
public void pushback(Character c)
c
- public int index()
public boolean hasNext()
public Character next()
public Character nextHex()
public Character nextOctal()
public static boolean isHexDigit(Character c)
c
-
public static boolean isOctalDigit(Character c)
c
-
public Character peek()
public boolean peek(char c)
c
-
public void mark()
public void reset()
protected String remainder()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |