public interface BSONParseListener
BSONParser
Modifier and Type | Method and Description |
---|---|
boolean |
abort()
returns whether the parsing can end at this time
|
void |
ended()
Called when the parsing ends.
|
void |
newKeyValue(byte typeOfValue,
String key,
DataInput reader)
Parses a value of type typeOfValue from reader, treats that as a value, and then
does whatever with the key-value pair.
|
void |
started()
Called when the parsing starts.
|
void newKeyValue(byte typeOfValue, String key, DataInput reader) throws NullPointerException, IOException, ParseException, UnsupportedOperationException
typeOfValue
- key
- the pair's keyreader
- the input values, to obtain a value fromIllegalStateException
- if this is called before started or between started and endedNullPointerException
IOException
ParseException
UnsupportedOperationException
boolean abort() throws IllegalStateException
IllegalStateException
- if this is called before started or between started and endedvoid ended() throws IllegalStateException, ParseException
IllegalStateException
- if this is called before started or between started and endedParseException
- if there was an error with the parsingvoid started() throws IllegalStateException
IllegalStateException
- if this is called before started or between started and ended