Class XStreamBandanaSerializer

    • Constructor Detail

      • XStreamBandanaSerializer

        @Deprecated
        public XStreamBandanaSerializer​(com.thoughtworks.xstream.XStream xStream)
        Deprecated.
        since 7.10.0 Use Bandana Manager directly as it contains deserialization capabilities or use XStreamBandanaSerializer(ConfluenceXStream confluenceXStream) instead
        Parameters:
        xStream -
      • XStreamBandanaSerializer

        public XStreamBandanaSerializer​(ConfluenceXStream confluenceXStream)
    • Method Detail

      • serialize

        public void serialize​(Object obj,
                              Writer writer)
        Description copied from interface: BandanaSerializer
        Serialize an object.
        Specified by:
        serialize in interface BandanaSerializer
        Parameters:
        obj - the object to serialize
        writer - a writer to serialize the object to
      • deserialize

        public Object deserialize​(Reader reader)
        Description copied from interface: BandanaSerializer
        Deserialize an object.
        Specified by:
        deserialize in interface BandanaSerializer
        Parameters:
        reader - a reader providing the serialized object
        Returns:
        the deserialized object