Interface EncoderRegistry

    • Method Detail

      • getEncoder

        Encoder getEncoder​(java.lang.Class<? extends Encoder> encoderClass,
                           short encoderId)
      • isRegistered

        boolean isRegistered​(java.lang.Class<? extends Encoder> encoderClass)
      • getWrapper

        Wrapper getWrapper​(java.lang.Class<? extends Wrapper> wrapperClass,
                           byte wrapperId)
      • registerWrapper

        void registerWrapper​(Wrapper wrapper)
      • registerTranscoder

        void registerTranscoder​(Transcoder transcoder)
      • getTranscoder

        Transcoder getTranscoder​(MediaType type1,
                                 MediaType type2)
        Obtain an instance of Transcoder from the registry.
        Parameters:
        type1 - MediaType supported by the transcoder.
        type2 - MediaType supported by the transcoder.
        Returns:
        An instance of Transcoder capable of doing conversions between the supplied MediaTypes.