com.supermap.services.rest.encoders
Class StreamEncoder
- java.lang.Object
-
- com.supermap.services.rest.encoders.Encoder
-
- com.supermap.services.rest.encoders.StreamEncoder
-
public class StreamEncoder extends Encoder
Binary flow representation generator.
Is responsible for serializing a binary stream into a binary stream representation.
-
-
Constructor Summary
Constructors Constructor and Description StreamEncoder()
-
Method Summary
Methods Modifier and Type Method and Description protected java.util.List<MediaType>createSupportedMediaTypes()Creates a supported media type, here is theMediaType#ALLtype.RepresentationtoRepresentation(MediaType mediaType, java.lang.Object obj)serializes a binary stream into a binary stream representation.-
Methods inherited from class com.supermap.services.rest.encoders.Encoder
getSupportedMediaTypes, isEncodeAllow
-
-
-
-
Method Detail
-
createSupportedMediaTypes
protected java.util.List<MediaType> createSupportedMediaTypes()
Creates a supported media type, here is the
MediaType#ALLtype.- Specified by:
createSupportedMediaTypesin classEncoder- Returns:
- media type list.
-
toRepresentation
public Representation toRepresentation(MediaType mediaType, java.lang.Object obj)serializes a binary stream into a binary stream representation.
- Specified by:
toRepresentationin classEncoder- Parameters:
mediaType- The type of expression.obj- to convert binary streams.- Returns:
- binary flow statement.
-
-