org.fusesource.stompjms.util
Class MarshallingSupport
java.lang.Object
org.fusesource.stompjms.util.MarshallingSupport
public final class MarshallingSupport
- extends java.lang.Object
The fixed version of the UTF8 encoding function. Some older JVM's UTF8
encoding function breaks when handling large strings.
- Version:
- $Revision$
|
Method Summary |
static void |
marshalBoolean(org.fusesource.hawtbuf.DataByteArrayOutputStream dataOut,
boolean value)
|
static void |
marshalByte(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte value)
|
static void |
marshalByteArray(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte[] value)
|
static void |
marshalByteArray(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte[] value,
int offset,
int length)
|
static void |
marshalChar(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
char value)
|
static void |
marshalDouble(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
double value)
|
static void |
marshalFloat(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
float value)
|
static void |
marshalInt(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
int value)
|
static void |
marshalLong(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
long value)
|
static void |
marshalNull(org.fusesource.hawtbuf.DataByteArrayOutputStream out)
|
static void |
marshalPrimitive(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
java.lang.Object value)
|
static void |
marshalPrimitiveList(java.util.List list,
org.fusesource.hawtbuf.DataByteArrayOutputStream out)
|
static void |
marshalPrimitiveMap(java.util.Map map,
org.fusesource.hawtbuf.DataByteArrayOutputStream out)
|
static void |
marshalShort(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
short value)
|
static void |
marshalString(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
java.lang.String s)
|
static java.lang.Object |
unmarshalPrimitive(java.io.DataInputStream in)
|
static java.util.List<java.lang.Object> |
unmarshalPrimitiveList(java.io.DataInputStream in)
|
static java.util.Map<java.lang.String,java.lang.Object> |
unmarshalPrimitiveMap(java.io.DataInputStream in)
|
static java.util.Map<java.lang.String,java.lang.Object> |
unmarshalPrimitiveMap(java.io.DataInputStream in,
int maxPropertySize)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL
public static final byte NULL
- See Also:
- Constant Field Values
BOOLEAN_TYPE
public static final byte BOOLEAN_TYPE
- See Also:
- Constant Field Values
BYTE_TYPE
public static final byte BYTE_TYPE
- See Also:
- Constant Field Values
CHAR_TYPE
public static final byte CHAR_TYPE
- See Also:
- Constant Field Values
SHORT_TYPE
public static final byte SHORT_TYPE
- See Also:
- Constant Field Values
INTEGER_TYPE
public static final byte INTEGER_TYPE
- See Also:
- Constant Field Values
LONG_TYPE
public static final byte LONG_TYPE
- See Also:
- Constant Field Values
DOUBLE_TYPE
public static final byte DOUBLE_TYPE
- See Also:
- Constant Field Values
FLOAT_TYPE
public static final byte FLOAT_TYPE
- See Also:
- Constant Field Values
STRING_TYPE
public static final byte STRING_TYPE
- See Also:
- Constant Field Values
BYTE_ARRAY_TYPE
public static final byte BYTE_ARRAY_TYPE
- See Also:
- Constant Field Values
MAP_TYPE
public static final byte MAP_TYPE
- See Also:
- Constant Field Values
LIST_TYPE
public static final byte LIST_TYPE
- See Also:
- Constant Field Values
BIG_STRING_TYPE
public static final byte BIG_STRING_TYPE
- See Also:
- Constant Field Values
marshalPrimitiveMap
public static void marshalPrimitiveMap(java.util.Map map,
org.fusesource.hawtbuf.DataByteArrayOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
unmarshalPrimitiveMap
public static java.util.Map<java.lang.String,java.lang.Object> unmarshalPrimitiveMap(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
unmarshalPrimitiveMap
public static java.util.Map<java.lang.String,java.lang.Object> unmarshalPrimitiveMap(java.io.DataInputStream in,
int maxPropertySize)
throws java.io.IOException
- Parameters:
in -
- Returns:
-
- Throws:
java.io.IOException
java.io.IOException
marshalPrimitiveList
public static void marshalPrimitiveList(java.util.List list,
org.fusesource.hawtbuf.DataByteArrayOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
unmarshalPrimitiveList
public static java.util.List<java.lang.Object> unmarshalPrimitiveList(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
marshalPrimitive
public static void marshalPrimitive(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
java.lang.Object value)
throws java.io.IOException
- Throws:
java.io.IOException
unmarshalPrimitive
public static java.lang.Object unmarshalPrimitive(java.io.DataInputStream in)
throws java.io.IOException
- Throws:
java.io.IOException
marshalNull
public static void marshalNull(org.fusesource.hawtbuf.DataByteArrayOutputStream out)
throws java.io.IOException
- Throws:
java.io.IOException
marshalBoolean
public static void marshalBoolean(org.fusesource.hawtbuf.DataByteArrayOutputStream dataOut,
boolean value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalByte
public static void marshalByte(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalChar
public static void marshalChar(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
char value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalShort
public static void marshalShort(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
short value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalInt
public static void marshalInt(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
int value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalLong
public static void marshalLong(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
long value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalFloat
public static void marshalFloat(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
float value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalDouble
public static void marshalDouble(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
double value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalByteArray
public static void marshalByteArray(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte[] value)
throws java.io.IOException
- Throws:
java.io.IOException
marshalByteArray
public static void marshalByteArray(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
byte[] value,
int offset,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
marshalString
public static void marshalString(org.fusesource.hawtbuf.DataByteArrayOutputStream out,
java.lang.String s)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2010-2011 FuseSource, Corp.. All Rights Reserved.