public class StringParserContext extends java.lang.Object implements ParserContext<JsonPrimitive>
| Constructor and Description |
|---|
StringParserContext(int quote) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
consume(int codePoint,
Jankson loader)
Consume one codepoint from the stream, and either use it to continue composing the result or to discover that
the result is complete and processing should stop.
|
void |
eof()
Notifies this context that the file ended abruptly while in this context and before isComplete returned true.
|
JsonPrimitive |
getResult()
Gets the result of parsing.
|
boolean |
isComplete()
Returns true if the parser has assembled a complete result.
|
public boolean consume(int codePoint,
Jankson loader)
ParserContextconsume in interface ParserContext<JsonPrimitive>public boolean isComplete()
ParserContextisComplete in interface ParserContext<JsonPrimitive>public JsonPrimitive getResult()
ParserContextgetResult in interface ParserContext<JsonPrimitive>public void eof()
throws SyntaxError
ParserContexteof in interface ParserContext<JsonPrimitive>SyntaxError