public class StreamEncoder extends Encoder
Binary flow representation generator.
Is responsible for serializing a binary stream into a binary stream representation.
Constructor and Description |
---|
StreamEncoder() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<MediaType> |
createSupportedMediaTypes()
Creates a supported media type, here is the
MediaType#ALL type. |
Representation |
toRepresentation(MediaType mediaType, java.lang.Object obj)
serializes a binary stream into a binary stream representation.
|
getSupportedMediaTypes, isEncodeAllow
protected java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the MediaType#ALL
type.
createSupportedMediaTypes
in class Encoder
public Representation toRepresentation(MediaType mediaType, java.lang.Object obj)
serializes a binary stream into a binary stream representation.
toRepresentation
in class Encoder
mediaType
- The type of expression.obj
- to convert binary streams.