Package snap.props

Class PropArchiverXML

java.lang.Object
snap.props.PropArchiver
snap.props.PropArchiverXML

public class PropArchiverXML extends PropArchiver
A PropArchiver subclass specifically to convert to/from XML.
  • Constructor Details

    • PropArchiverXML

      public PropArchiverXML()
      Constructor.
  • Method Details

    • writePropObjectToXML

      public XMLElement writePropObjectToXML(PropObject aPropObject)
      Converts a PropObject to XML.
    • writePropObjectToXMLBytes

      public byte[] writePropObjectToXMLBytes(PropObject aPropObject)
      Converts a PropObject to XML.
    • readPropObjectFromXMLSource

      public Object readPropObjectFromXMLSource(Object aSource)
      Reads a PropObject from XML source.
    • readPropObjectFromXMLBytes

      public Object readPropObjectFromXMLBytes(byte[] theBytes)
      Reads a PropObject from XML.
    • readPropObjectFromXML

      public PropObject readPropObjectFromXML(XMLElement anElement)
      Reads a PropObject from XML.
    • readResources

      protected void readResources(XMLElement anElement)
      Reads resources from elements in given xml (top-level) element, converts from ASCII encoding and adds to archiver.