Interface OrgJsonSerializer<T>
-
- All Superinterfaces:
PojoSerializer<T>
- All Known Implementing Classes:
S3EventSerializer
public interface OrgJsonSerializer<T> extends PojoSerializer<T>
Interface for event serializers that use org json
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T
fromJson(InputStream input)
defined in PojoSerializerT
fromJson(String input)
defined in PojoSerializervoid
toJson(T value, OutputStream output)
defined in PojoSerializerOrgJsonSerializer<T>
withClass(Class<T> eventClass)
OrgJsonSerializer<T>
withClassLoader(ClassLoader classLoader)
-
-
-
Method Detail
-
withClass
OrgJsonSerializer<T> withClass(Class<T> eventClass)
- Parameters:
eventClass
- event class object- Returns:
- OrgJsonSerializer with event type
-
withClassLoader
OrgJsonSerializer<T> withClassLoader(ClassLoader classLoader)
- Parameters:
classLoader
- to use if the implementation needs to load any classes- Returns:
- OrgJsonSerializer with the supplied classLoader
-
fromJson
T fromJson(InputStream input)
defined in PojoSerializer- Specified by:
fromJson
in interfacePojoSerializer<T>
- Parameters:
input
- input stream- Returns:
- deserialized object of type T
-
fromJson
T fromJson(String input)
defined in PojoSerializer- Specified by:
fromJson
in interfacePojoSerializer<T>
- Parameters:
input
- String input- Returns:
- deserialized object of type T
-
toJson
void toJson(T value, OutputStream output)
defined in PojoSerializer- Specified by:
toJson
in interfacePojoSerializer<T>
- Parameters:
value
- instance of type T to be serializedoutput
- OutputStream to serialize object to
-
-