Class XMLTranscoder

  • All Implemented Interfaces:
    Transcoder

    public class XMLTranscoder
    extends OneToManyTranscoder
    Basic XML transcoder supporting conversions from XML to commons formats.
    Since:
    9.2
    • Constructor Detail

      • XMLTranscoder

        public XMLTranscoder()
      • XMLTranscoder

        public XMLTranscoder​(ClassWhiteList classWhiteList)
    • Method Detail

      • transcode

        public Object transcode​(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.