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>
|
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.
|
|
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.
|
|
static void | marshalPrimitive (decaf::io::DataOutputStream &dataOut, const util::PrimitiveValueNode &value) |
| Used to Marshal the Primitive types out on the Wire.
|
|
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.
|
|
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.
|
|
static util::PrimitiveValueNode | unmarshalPrimitive (decaf::io::DataInputStream &dataIn) |
| Unmarshals a Primitive Type from the stream, and returns it as a value Node.
|
|
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.
◆ PrimitiveTypesMarshaller()
activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::PrimitiveTypesMarshaller |
( |
| ) |
|
|
inline |
◆ ~PrimitiveTypesMarshaller()
virtual activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::~PrimitiveTypesMarshaller |
( |
| ) |
|
|
inlinevirtual |
◆ marshal() [1/2]
static void activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::marshal |
( |
const util::PrimitiveList * | list, |
|
|
std::vector< unsigned char > & | buffer ) |
|
static |
Marshal a primitive list object to the given byte buffer.
- Parameters
-
map | The PrimitiveList to Marshal. |
buffer | The byte buffer to write the marshaled data to. |
- Exceptions
-
Exception | if an error occurs during the marshaling process. |
◆ marshal() [2/2]
static void activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::marshal |
( |
const util::PrimitiveMap * | map, |
|
|
std::vector< unsigned char > & | buffer ) |
|
static |
Marshal a primitive map object to the given byte buffer.
- Parameters
-
map | Map to Marshal. |
buffer | The byte buffer to write the marshaled data to. |
- Exceptions
-
Exception | if an error occurs during the marshaling process. |
◆ marshalList()
Marshal a PrimitiveList to the given DataOutputStream.
- Parameters
-
list | The list object to Marshal |
dataOut | Reference to a DataOutputStream to write the marshaled data to. |
- Exceptions
-
Exception | if an error occurs during the marshaling process. |
◆ marshalMap()
Marshal a primitive map object to the given DataOutputStream.
- Parameters
-
map | Map to Marshal. |
dataOut | Reference to a DataOutputStream to write the marshaled data to. |
- Exceptions
-
Exception | if an error occurs during the marshaling process. |
◆ marshalPrimitive()
Used to Marshal the Primitive types out on the Wire.
- Parameters
-
dataOut | - the DataOutputStream to write to |
value | - the ValueNode to write. |
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
◆ marshalPrimitiveList()
Marshal a List of Primitives to the given OutputStream, can result in recursive calls to this method if the list contains lists of lists.
- Parameters
-
dataOut | - the DataOutputStream to write to |
list | - the ValueNode to write. |
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
◆ marshalPrimitiveMap()
Marshal a Map of Primitives to the given OutputStream, can result in recursive calls to this method if the map contains maps of maps.
- Parameters
-
dataOut | - the DataOutputStream to write to |
map | - the ValueNode to write. |
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
◆ unmarshal() [1/2]
static void activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::unmarshal |
( |
util::PrimitiveList * | list, |
|
|
const std::vector< unsigned char > & | buffer ) |
|
static |
Unmarshal a PrimitiveList from the provided byte buffer.
- Parameters
-
map | The List to populate with values from the marshaled data. |
buffer | The byte buffer containing the marshaled Map. |
- Exceptions
-
Exception | if an error occurs during the unmarshal process. |
◆ unmarshal() [2/2]
static void activemq::wireformat::openwire::marshal::PrimitiveTypesMarshaller::unmarshal |
( |
util::PrimitiveMap * | map, |
|
|
const std::vector< unsigned char > & | buffer ) |
|
static |
Unmarshal a PrimitiveMap from the provided Byte buffer.
- Parameters
-
map | The Map to populate with values from the marshaled data. |
buffer | The byte buffer containing the marshaled Map. |
- Exceptions
-
Exception | if an error occurs during the unmarshal process. |
◆ unmarshalList()
Unmarshal a PrimitiveList from the given DataInputStream.
- Parameters
-
dataIn | The DataInputStream instance to read the marshaled PrimitiveList from. |
- Returns
- a pointer to a newly allocated PrimitiveList instnace.
- Exceptions
-
Exception | if an error occurs during the unmarshal process. |
◆ unmarshalMap()
Unmarshal a PrimitiveMap from the provided DataInputStream.
- Parameters
-
dataIn | The DataInputStream instance to read the marshaled PrimitiveMap from. |
- Returns
- a pointer to a newly allocated PrimitiveMap instnace.
- Exceptions
-
Exception | if an error occurs during the unmarshal process. |
◆ unmarshalPrimitive()
Unmarshals a Primitive Type from the stream, and returns it as a value Node.
- Parameters
-
dataIn | - DataInputStream to read from. |
- Returns
- a PrimitiveValueNode containing the data.
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
◆ unmarshalPrimitiveList()
Unmarshals a List of Primitives from the given InputStream, can result in recursive calls to this method if the list contains lists of lists.
- Parameters
-
dataIn | - DataInputStream to read from. |
list | - the ValueNode to write. |
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
◆ unmarshalPrimitiveMap()
Unmarshals a Map of Primitives from the given InputStream, can result in recursive calls to this method if the map contains maps of maps.
- Parameters
-
dataIn | - DataInputStream to read from. |
map | - the map to fill with data. |
- Exceptions
-
IOException | if an I/O error occurs during this operation. |
The documentation for this class was generated from the following file: