com.supermap.services.rest.encoders

Class 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 the MediaType#ALL type.
      Representation toRepresentation(MediaType mediaType, java.lang.Object obj)
      serializes a binary stream into a binary stream representation.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StreamEncoder

        public StreamEncoder()
        
    • Method Detail

      • createSupportedMediaTypes

        protected java.util.List<MediaType> createSupportedMediaTypes()
        

        Creates a supported media type, here is the MediaType#ALL type.

        Specified by:
        createSupportedMediaTypes in class Encoder
        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:
        toRepresentation in class Encoder
        Parameters:
        mediaType - The type of expression.
        obj - to convert binary streams.
        Returns:
        binary flow statement.