public final class GserParser extends Object
Constructor and Description |
---|
GserParser(CharSequence value)
Creates a new GSER Parser.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext()
Determines if the GSER String contains at least one character to be read.
|
BigInteger |
nextBigInteger()
Returns the next element as a BigInteger.
|
String |
nextChoiceValueIdentifier()
Return the identifier of the next IdentifiedChoiceValue element.
|
int |
nextInteger()
Returns the next element as an Integer.
|
String |
nextNamedValueIdentifier()
Returns the identifier of the next NamedValue element.
|
String |
nextString()
Returns the next element as a String.
|
GserParser |
readEndSequence()
Skips the input matching the end of a sequence and preceding space
characters.
|
GserParser |
readStartSequence()
Skips the input matching the start of a sequence and subsequent space
characters.
|
GserParser |
skipMsp()
Skips the input matching one or more space characters.
|
GserParser |
skipSeparator()
Skips the input matching the separator pattern (",") and subsequenct
space characters.
|
GserParser |
skipSp()
Skips the input matching zero, one or more space characters.
|
String |
toString()
Returns the GSER encoded String value.
|
public GserParser(CharSequence value)
value
- the GSER encoded String valuepublic boolean hasNext()
true
if there is at least one remaining character or
false
otherwise.public GserParser skipSp() throws DecodeException
DecodeException
- If no match could be foundpublic GserParser skipMsp() throws DecodeException
DecodeException
- If no match could be foundpublic GserParser readStartSequence() throws DecodeException
DecodeException
- If the input does not match the start of a
sequencepublic GserParser readEndSequence() throws DecodeException
DecodeException
- If the input does not match the end of a sequencepublic GserParser skipSeparator() throws DecodeException
DecodeException
- If the input does not match the separator
pattern.public String nextString() throws DecodeException
DecodeException
- If the input does not match the string pattern.public int nextInteger() throws DecodeException
DecodeException
- If the input does not match the integer patternpublic BigInteger nextBigInteger() throws DecodeException
DecodeException
- If the input does not match the integer patternpublic String nextNamedValueIdentifier() throws DecodeException
DecodeException
- If the input does not match the identifier
pattern of a NamedValuepublic String nextChoiceValueIdentifier() throws DecodeException
DecodeException
- If the input does not match the identifier
pattern of an IdentifiedChoiceValueCopyright 2010-2022 ForgeRock AS.