Class CodecWrappers.XStreamXml

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected XmlXStream codec  
    • Constructor Summary

      Constructors 
      Constructor Description
      XStreamXml()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String codecName()  
      <T> T decode​(java.io.InputStream inputStream, java.lang.Class<T> type)  
      <T> T decode​(java.lang.String textValue, java.lang.Class<T> type)  
      <T> java.lang.String encode​(T object)  
      <T> void encode​(T object, java.io.OutputStream outputStream)  
      boolean support​(jakarta.ws.rs.core.MediaType mediaType)  
      • Methods inherited from class java.lang.Object

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

      • XStreamXml

        public XStreamXml()
    • Method Detail

      • support

        public boolean support​(jakarta.ws.rs.core.MediaType mediaType)
        Specified by:
        support in interface CodecWrapperBase
      • encode

        public <T> java.lang.String encode​(T object)
                                    throws java.io.IOException
        Specified by:
        encode in interface EncoderWrapper
        Throws:
        java.io.IOException
      • encode

        public <T> void encode​(T object,
                               java.io.OutputStream outputStream)
                        throws java.io.IOException
        Specified by:
        encode in interface EncoderWrapper
        Throws:
        java.io.IOException
      • decode

        public <T> T decode​(java.lang.String textValue,
                            java.lang.Class<T> type)
                     throws java.io.IOException
        Specified by:
        decode in interface DecoderWrapper
        Throws:
        java.io.IOException
      • decode

        public <T> T decode​(java.io.InputStream inputStream,
                            java.lang.Class<T> type)
                     throws java.io.IOException
        Specified by:
        decode in interface DecoderWrapper
        Throws:
        java.io.IOException