Class BinaryTranscoder

  • All Implemented Interfaces:
    Transcoder

    public final class BinaryTranscoder
    extends OneToManyTranscoder
    Handle conversions for the generic binary format 'application/unknown' that is assumed when no MediaType is specified.
    Since:
    10.0
    • Constructor Detail

      • BinaryTranscoder

        public BinaryTranscoder​(Marshaller marshaller)
    • Method Detail

      • overrideMarshaller

        public void overrideMarshaller​(Marshaller marshaller)
      • transcode

        public java.lang.Object transcode​(java.lang.Object content,
                                          MediaType contentType,
                                          MediaType destinationType)
        Description copied from interface: Transcoder
        Transcodes content between two different MediaType.
        Parameters:
        content - Content to transcode.
        contentType - The MediaType of the content.
        destinationType - The target MediaType to convert.
        Returns:
        the transcoded content.