org.apache.pivot.json
Interface JSONSerializerListener

All Known Implementing Classes:
JSONSerializerListener.Adapter

public interface JSONSerializerListener

JSON serializer listener interface.


Nested Class Summary
static class JSONSerializerListener.Adapter
          JSON serializer listener adapter.
 
Method Summary
 void beginDictionary(JSONSerializer jsonSerializer, Dictionary<String,?> value)
          Called when the serializer has begun reading a dictionary value.
 void beginSequence(JSONSerializer jsonSerializer, Sequence<?> value)
          Called when the serializer has begun reading a sequence value.
 void endDictionary(JSONSerializer jsonSerializer)
          Called when the serializer has finished reading a dictionary value.
 void endSequence(JSONSerializer jsonSerializer)
          Called when the serializer has finished reading a sequence value.
 void readBoolean(JSONSerializer jsonSerializer, Boolean value)
          Called when the serializer has read a boolean value.
 void readKey(JSONSerializer jsonSerializer, String key)
          Called when the serializer has read a dictionary key.
 void readNull(JSONSerializer jsonSerializer)
          Called when the serializer has read a null value.
 void readNumber(JSONSerializer jsonSerializer, Number value)
          Called when the serializer has read a numeric value.
 void readString(JSONSerializer jsonSerializer, String value)
          Called when the serializer has read a string value.
 

Method Detail

beginDictionary

void beginDictionary(JSONSerializer jsonSerializer,
                     Dictionary<String,?> value)
Called when the serializer has begun reading a dictionary value.

Parameters:
jsonSerializer -
value -

endDictionary

void endDictionary(JSONSerializer jsonSerializer)
Called when the serializer has finished reading a dictionary value.

Parameters:
jsonSerializer -

readKey

void readKey(JSONSerializer jsonSerializer,
             String key)
Called when the serializer has read a dictionary key.

Parameters:
jsonSerializer -
key -

beginSequence

void beginSequence(JSONSerializer jsonSerializer,
                   Sequence<?> value)
Called when the serializer has begun reading a sequence value.

Parameters:
jsonSerializer -
value -

endSequence

void endSequence(JSONSerializer jsonSerializer)
Called when the serializer has finished reading a sequence value.

Parameters:
jsonSerializer -

readString

void readString(JSONSerializer jsonSerializer,
                String value)
Called when the serializer has read a string value.

Parameters:
jsonSerializer -
value -

readNumber

void readNumber(JSONSerializer jsonSerializer,
                Number value)
Called when the serializer has read a numeric value.

Parameters:
jsonSerializer -
value -

readBoolean

void readBoolean(JSONSerializer jsonSerializer,
                 Boolean value)
Called when the serializer has read a boolean value.

Parameters:
jsonSerializer -
value -

readNull

void readNull(JSONSerializer jsonSerializer)
Called when the serializer has read a null value.

Parameters:
jsonSerializer -