Interface EncoderRegistry

    • Method Detail

      • getEncoder

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

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

        Wrapper getWrapper​(java.lang.Class<? extends Wrapper> wrapperClass,
                           java.lang.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.
        type1 - MediaType supported by the transcoder.
        type2 - MediaType supported by the transcoder.
        An instance of Transcoder capable of doing conversions between the supplied MediaTypes.
      • getTranscoder

        <T extends Transcoder> T getTranscoder​(java.lang.Class<T> clazz)