Package com.github.tnakamot.json.pointer
Class JSONPointerLexer
- java.lang.Object
-
- com.github.tnakamot.json.pointer.JSONPointerLexer
-
public class JSONPointerLexer extends Object
An implementation of lexical analyzer for JSON Pointer. This implementation complies with RFC 6901.Instances of this class are disposal. A new instance must be created to tokenize one JSON Pointer.
Instances of this class are not thread-safe.
- See Also:
- RFC 6901
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<JSONPointerReferenceToken>
tokenize(boolean fragment)
Tokenize the given JSON Pointer.
-
-
-
Method Detail
-
tokenize
public List<JSONPointerReferenceToken> tokenize(boolean fragment) throws InvalidJSONPointerSyntaxException
Tokenize the given JSON Pointer.- Parameters:
fragment
- specify true to handle the given string as a URI fragment identifier starting with '#".- Throws:
InvalidJSONPointerSyntaxException
- when the given String cannot be interpreted as a JSON Pointer.
-
-