activemq-cpp-3.9.0
|
This class wraps the functionality needed to marshal a primitive map to the Openwire Format's expectation of what the map looks like on the wire. More...
#include <src/main/activemq/wireformat/openwire/marshal/PrimitiveTypesMarshaller.h>
Public Member Functions | |
PrimitiveTypesMarshaller () | |
virtual | ~PrimitiveTypesMarshaller () |
Static Public Member Functions | |
static void | marshal (const util::PrimitiveMap *map, std::vector< unsigned char > &buffer) |
Marshal a primitive map object to the given byte buffer. More... | |
static void | unmarshal (util::PrimitiveMap *map, const std::vector< unsigned char > &buffer) |
Unmarshal a PrimitiveMap from the provided Byte buffer. More... | |
static void | marshal (const util::PrimitiveList *list, std::vector< unsigned char > &buffer) |
Marshal a primitive list object to the given byte buffer. More... | |
static void | unmarshal (util::PrimitiveList *list, const std::vector< unsigned char > &buffer) |
Unmarshal a PrimitiveList from the provided byte buffer. More... | |
static void | marshalMap (const util::PrimitiveMap *map, decaf::io::DataOutputStream &dataOut) |
Marshal a primitive map object to the given DataOutputStream. More... | |
static util::PrimitiveMap * | unmarshalMap (decaf::io::DataInputStream &dataIn) |
Unmarshal a PrimitiveMap from the provided DataInputStream. More... | |
static void | marshalList (const util::PrimitiveList *list, decaf::io::DataOutputStream &dataOut) |
Marshal a PrimitiveList to the given DataOutputStream. More... | |
static util::PrimitiveList * | unmarshalList (decaf::io::DataInputStream &dataIn) |
Unmarshal a PrimitiveList from the given DataInputStream. More... | |
Static Protected Member Functions | |
static void | marshalPrimitiveMap (decaf::io::DataOutputStream &dataOut, const decaf::util::Map< std::string, util::PrimitiveValueNode > &map) |
Marshal a Map of Primitives to the given OutputStream, can result in recursive calls to this method if the map contains maps of maps. More... | |
static void | marshalPrimitiveList (decaf::io::DataOutputStream &dataOut, const decaf::util::List< util::PrimitiveValueNode > &list) |
Marshal a List of Primitives to the given OutputStream, can result in recursive calls to this method if the list contains lists of lists. More... | |
static void | marshalPrimitive (decaf::io::DataOutputStream &dataOut, const util::PrimitiveValueNode &value) |
Used to Marshal the Primitive types out on the Wire. More... | |
static void | unmarshalPrimitiveMap (decaf::io::DataInputStream &dataIn, util::PrimitiveMap &map) |
Unmarshals a Map of Primitives from the given InputStream, can result in recursive calls to this method if the map contains maps of maps. More... | |
static void | unmarshalPrimitiveList (decaf::io::DataInputStream &dataIn, decaf::util::LinkedList< util::PrimitiveValueNode > &list) |
Unmarshals a List of Primitives from the given InputStream, can result in recursive calls to this method if the list contains lists of lists. More... | |
static util::PrimitiveValueNode | unmarshalPrimitive (decaf::io::DataInputStream &dataIn) |
Unmarshals a Primitive Type from the stream, and returns it as a value Node. More... | |
This class wraps the functionality needed to marshal a primitive map to the Openwire Format's expectation of what the map looks like on the wire.
|
inline |
|
inlinevirtual |
|
static |
Marshal a primitive map object to the given byte buffer.
map | Map to Marshal. |
buffer | The byte buffer to write the marshaled data to. |
Exception | if an error occurs during the marshaling process. |
|
static |
Marshal a primitive list object to the given byte buffer.
map | The PrimitiveList to Marshal. |
buffer | The byte buffer to write the marshaled data to. |
Exception | if an error occurs during the marshaling process. |
|
static |
Marshal a PrimitiveList to the given DataOutputStream.
list | The list object to Marshal |
dataOut | Reference to a DataOutputStream to write the marshaled data to. |
Exception | if an error occurs during the marshaling process. |
|
static |
Marshal a primitive map object to the given DataOutputStream.
map | Map to Marshal. |
dataOut | Reference to a DataOutputStream to write the marshaled data to. |
Exception | if an error occurs during the marshaling process. |
|
staticprotected |
Used to Marshal the Primitive types out on the Wire.
dataOut | - the DataOutputStream to write to |
value | - the ValueNode to write. |
IOException | if an I/O error occurs during this operation. |
|
staticprotected |
Marshal a List of Primitives to the given OutputStream, can result in recursive calls to this method if the list contains lists of lists.
dataOut | - the DataOutputStream to write to |
list | - the ValueNode to write. |
IOException | if an I/O error occurs during this operation. |
|
staticprotected |
Marshal a Map of Primitives to the given OutputStream, can result in recursive calls to this method if the map contains maps of maps.
dataOut | - the DataOutputStream to write to |
map | - the ValueNode to write. |
IOException | if an I/O error occurs during this operation. |
|
static |
Unmarshal a PrimitiveMap from the provided Byte buffer.
map | The Map to populate with values from the marshaled data. |
buffer | The byte buffer containing the marshaled Map. |
Exception | if an error occurs during the unmarshal process. |
|
static |
Unmarshal a PrimitiveList from the provided byte buffer.
map | The List to populate with values from the marshaled data. |
buffer | The byte buffer containing the marshaled Map. |
Exception | if an error occurs during the unmarshal process. |
|
static |
Unmarshal a PrimitiveList from the given DataInputStream.
dataIn | The DataInputStream instance to read the marshaled PrimitiveList from. |
Exception | if an error occurs during the unmarshal process. |
|
static |
Unmarshal a PrimitiveMap from the provided DataInputStream.
dataIn | The DataInputStream instance to read the marshaled PrimitiveMap from. |
Exception | if an error occurs during the unmarshal process. |
|
staticprotected |
Unmarshals a Primitive Type from the stream, and returns it as a value Node.
dataIn | - DataInputStream to read from. |
IOException | if an I/O error occurs during this operation. |
|
staticprotected |
Unmarshals a List of Primitives from the given InputStream, can result in recursive calls to this method if the list contains lists of lists.
dataIn | - DataInputStream to read from. |
list | - the ValueNode to write. |
IOException | if an I/O error occurs during this operation. |
|
staticprotected |
Unmarshals a Map of Primitives from the given InputStream, can result in recursive calls to this method if the map contains maps of maps.
dataIn | - DataInputStream to read from. |
map | - the map to fill with data. |
IOException | if an I/O error occurs during this operation. |