Serialization Package Classes
The following lists the classes in the Serialization package and their descriptions.
The class
RWCompactObjectInputStreamImp reads objects encoded in a compact format from the supplied
RWDataInputStream. The format of this stream resembles that produced when
RWCollectables are persisted using RW virtual streams. Implements the body idiom from the handle/body pattern. The stream can optionally be annotated with member (attribute) name and type information to support generic parsing.
The class
RWCompactObjectOutputStreamImp writes objects in a compact format to the supplied
RWDataOutputStream. The format of this stream resembles that produced when
RWCollectables are persisted using RW virtual streams. Implements the body idiom from the handle/body pattern. The stream can optionally be annotated with member (attribute) name and type information to support generic parsing.
An adapter class that allows an Essential Tools Module virtual input stream (
RWvistream) to be used where a
RWDataInputStream is required. Implements the body idiom from the handle-body pattern.
An adapter class that allows an Essential Tools Module virtual output stream (
RWvostream) to be used where a
RWDataOutputStream is required. Implements the body idiom from the handle-body pattern.
The handle class for object input stream imp classes. Implements the handle idiom from the handle/body pattern. With the exception of constructors, assignment operators, and getFactory, all member functions forward directly to the implementation associated with this handle during construction.
Base class for all object input stream implementations. The derivation from filtered data input stream provides default implementations for output of all primitive types and allows the low level stream formatting to be controlled by delegation to a separate data input stream object.
RWObjectOutputStream is the handle class for object output stream
imp classes. Implements the handle idiom from the handle/body pattern. With the exception of constructors and assignment operators, all member functions forward directly to the implementation associated with this handle during construction.
Base class imp for all object output streams. Inherits default operations for streaming primitives from the data output stream.
See the corresponding handle class,
RWObjectOutputStream, for the description of the object output stream interface.
This class consists of a guard object that opens and closes a context within a lexical scope. To use
RWWithObjectInputContext, simply declare an automatic instance of this class initialized with a object input stream, and all object references within the scope of the automatic variable will be streamed within the same context.
This class consists of a guard object that opens and closes a context within a lexical scope. To use
RWWithObjectOutputContext, simply declare an automatic instance of this class initialized with a object output stream, and all object references within the scope of the automatic variable will be streamed within the same context.
This class represents a proxy object used to insert an item and its instance name into an object output stream. The global function template rwInsertWithName<T>(RWCString,const T& constructs one of these objects.
NOTE: The class
RWCompactObjectOutputStreamImp does not support this functionality, so using it will have no effect; classes in the XML Streams Module do provide support however.