Common Lisp Package: S-SERIALIZATION

XML and s-expression based serialization for Common Lisp and CLOS

README:

FUNCTION

Public

DESERIALIZE-SEXP (STREAM &OPTIONAL (SERIALIZATION-STATE (MAKE-SERIALIZATION-STATE)))

Read and return an s-expression serialized version of a lisp object from stream, optionally reusing a serialization state

DESERIALIZE-XML (STREAM &OPTIONAL (SERIALIZATION-STATE (MAKE-SERIALIZATION-STATE)))

Read and return an XML serialized version of a lisp object from stream, optionally reusing a serialization state

MAKE-SERIALIZATION-STATE

Create a reusable serialization state to pass as optional argument to [de]serialize-xml

SERIALIZE-SEXP (OBJECT STREAM &OPTIONAL (SERIALIZATION-STATE (MAKE-SERIALIZATION-STATE)))

Write a serialized version of object to stream using s-expressions, optionally reusing a serialization-state

SERIALIZE-XML (OBJECT STREAM &OPTIONAL (SERIALIZATION-STATE (MAKE-SERIALIZATION-STATE)))

Write a serialized version of object to stream using XML, optionally reusing a serialization-state

Private

Undocumented

DESERIALIZE-SEXP-INTERNAL (SEXP DESERIALIZED-OBJECTS)

DESERIALIZE-XML-FINISH-ELEMENT (NAME ATTRIBUTES PARENT-SEED SEED)

DESERIALIZE-XML-NEW-ELEMENT (NAME ATTRIBUTES SEED)

DESERIALIZE-XML-TEXT (STRING SEED)

GET-ATTRIBUTE-VALUE (NAME ATTRIBUTES)

SEQUENCE-TYPE-AND-LENGTH (SEQUENCE)

GENERIC-FUNCTION

Public

RESET-KNOWN-SLOTS (SERIALIZATION-STATE &OPTIONAL CLASS)

Clear the caching of known slots for class, or for all classes if class is nil

SERIALIZABLE-SLOTS (OBJECT)

Return a list of slot names that need serialization

Private

DESERIALIZE-XML-FINISH-ELEMENT-AUX (NAME ATTRIBUTES PARENT-SEED SEED)

Extend with your own types by overloading serialize-xml-internal and implementing deserialize aux functions

DESERIALIZE-XML-NEW-ELEMENT-AUX (NAME ATTRIBUTES)

Extend with your own types by overloading serialize-xml-internal and implementing deserialize aux functions

SERIALIZE-SEXP-INTERNAL (OBJECT STREAM SERIALIZATION-STATE)

Write a serialized version of object to stream using s-expressions

SERIALIZE-XML-INTERNAL (OBJECT STREAM SERIALIZATION-STATE)

Write a serialized version of object to stream using XML

Undocumented

GET-SERIALIZABLE-SLOTS (SERIALIZATION-STATE OBJECT)

GET-XML-PARSER-STATE (SERIALIZATION-STATE)

KNOWN-OBJECT-ID (SERIALIZATION-STATE OBJECT)

RESET (SERIALIZATION-STATE)

SET-KNOWN-OBJECT (SERIALIZATION-STATE OBJECT)

SLOT-ACCESSOR

Private

Undocumented

GET-COUNTER (OBJECT)

SETFGET-COUNTER (NEW-VALUE OBJECT)

GET-HASHTABLE (OBJECT)

CLASS

Private

Undocumented

SERIALIZATION-STATE

CONSTANT

Private

Undocumented

+CL-PACKAGE+

+KEYWORD-PACKAGE+