public class GSERParser extends Object
Constructor and Description |
---|
GSERParser(String 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.
|
public GSERParser(String 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 GSERException
GSERException
- If no match could be foundpublic GSERParser skipMSP() throws GSERException
GSERException
- If no match could be foundpublic GSERParser readStartSequence() throws GSERException
GSERException
- If the input does not match the start of a sequencepublic GSERParser readEndSequence() throws GSERException
GSERException
- If the input does not match the end of a sequencepublic GSERParser skipSeparator() throws GSERException
GSERException
- If the input does not match the separator pattern.public String nextString() throws GSERException
GSERException
- If the input does not match the string pattern.public int nextInteger() throws GSERException
GSERException
- If the input does not match the integer patternpublic BigInteger nextBigInteger() throws GSERException
GSERException
- If the input does not match the integer patternpublic String nextNamedValueIdentifier() throws GSERException
GSERException
- If the input does not match the identifier pattern of a
NamedValuepublic String nextChoiceValueIdentifier() throws GSERException
GSERException
- If the input does not match the identifier pattern of an
IdentifiedChoiceValueCopyright © 2010-2017 ForgeRock AS. All Rights Reserved.