public class ObjectStreamEncoder extends Encoder
Java object binary stream serializer.
Is responsible for serializing a Java object into a binary stream in Java.
| Constructor and Description |
|---|
ObjectStreamEncoder() |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
Creates a supported media type, here is the
# APPLICATION_JAVA_OBJECT type. |
Representation |
toRepresentation(MediaType mediaType, java.lang.Object obj)
Serializes a Java object into a binary stream representation in Java
|
getSupportedMediaTypes, isEncodeAllowprotected java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the # APPLICATION_JAVA_OBJECT type.
createSupportedMediaTypes in class Encoder
public Representation toRepresentation(MediaType mediaType,
java.lang.Object obj)
Serializes a Java object into a binary stream representation in Java
toRepresentation in class EncodermediaType - The type of expression.obj - The Java object to be converted.