Package org.apache.pivot.json
Class JSONSerializerListener.Adapter
- java.lang.Object
-
- org.apache.pivot.json.JSONSerializerListener.Adapter
-
- All Implemented Interfaces:
JSONSerializerListener
- Enclosing interface:
- JSONSerializerListener
@Deprecated public static final class JSONSerializerListener.Adapter extends java.lang.Object implements JSONSerializerListener
Deprecated.Since 2.1 and Java 8 the interface itself has default implementations.JSON serializer listener adapter.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.pivot.json.JSONSerializerListener
JSONSerializerListener.Adapter, JSONSerializerListener.Listeners
-
-
Constructor Summary
Constructors Constructor Description Adapter()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
beginDictionary(JSONSerializer jsonSerializer, Dictionary<java.lang.String,?> value)
Deprecated.Called when the serializer has begun reading a dictionary value.void
beginSequence(JSONSerializer jsonSerializer, Sequence<?> value)
Deprecated.Called when the serializer has begun reading a sequence value.void
endDictionary(JSONSerializer jsonSerializer)
Deprecated.Called when the serializer has finished reading a dictionary value.void
endSequence(JSONSerializer jsonSerializer)
Deprecated.Called when the serializer has finished reading a sequence value.void
readBoolean(JSONSerializer jsonSerializer, java.lang.Boolean value)
Deprecated.Called when the serializer has read a boolean value.void
readKey(JSONSerializer jsonSerializer, java.lang.String key)
Deprecated.Called when the serializer has read a dictionary key.void
readNull(JSONSerializer jsonSerializer)
Deprecated.Called when the serializer has read a null value.void
readNumber(JSONSerializer jsonSerializer, java.lang.Number value)
Deprecated.Called when the serializer has read a numeric value.void
readString(JSONSerializer jsonSerializer, java.lang.String value)
Deprecated.Called when the serializer has read a string value.
-
-
-
Method Detail
-
beginDictionary
public void beginDictionary(JSONSerializer jsonSerializer, Dictionary<java.lang.String,?> value)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has begun reading a dictionary value.- Specified by:
beginDictionary
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The serializer in question.value
- The dictionary just started.
-
endDictionary
public void endDictionary(JSONSerializer jsonSerializer)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has finished reading a dictionary value.- Specified by:
endDictionary
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The serializer in operation.
-
readKey
public void readKey(JSONSerializer jsonSerializer, java.lang.String key)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has read a dictionary key.- Specified by:
readKey
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The active serializer.key
- The key just read.
-
beginSequence
public void beginSequence(JSONSerializer jsonSerializer, Sequence<?> value)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has begun reading a sequence value.- Specified by:
beginSequence
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The serializer.value
- The sequence just started.
-
endSequence
public void endSequence(JSONSerializer jsonSerializer)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has finished reading a sequence value.- Specified by:
endSequence
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The current serializer.
-
readString
public void readString(JSONSerializer jsonSerializer, java.lang.String value)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has read a string value.- Specified by:
readString
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The active serializer.value
- The string value just read.
-
readNumber
public void readNumber(JSONSerializer jsonSerializer, java.lang.Number value)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has read a numeric value.- Specified by:
readNumber
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The active serializer.value
- The numeric value just read.
-
readBoolean
public void readBoolean(JSONSerializer jsonSerializer, java.lang.Boolean value)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has read a boolean value.- Specified by:
readBoolean
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The serializer.value
- The boolean value just read.
-
readNull
public void readNull(JSONSerializer jsonSerializer)
Deprecated.Description copied from interface:JSONSerializerListener
Called when the serializer has read a null value.- Specified by:
readNull
in interfaceJSONSerializerListener
- Parameters:
jsonSerializer
- The currently active serializer.
-
-