Interface Converter

    • Method Detail

      • marshal

        void marshal​(java.lang.Object source,
                     HierarchicalStreamWriter writer,
                     MarshallingContext context)
        Convert an object to textual data.
        Parameters:
        source - The object to be marshalled.
        writer - A stream to write to.
        context - A context that allows nested objects to be processed by XStream.
      • unmarshal

        java.lang.Object unmarshal​(HierarchicalStreamReader reader,
                                   UnmarshallingContext context)
        Convert textual data back into an object.
        Parameters:
        reader - The stream to read the text from.
        context -
        Returns:
        The resulting object.