public class BufferHelper extends Object
Constructor and Description |
---|
BufferHelper() |
Modifier and Type | Method and Description |
---|---|
static Boolean |
readNullableBoolean(HornetQBuffer buffer) |
static Integer |
readNullableInteger(HornetQBuffer buffer) |
static Long |
readNullableLong(HornetQBuffer buffer) |
static String |
readNullableSimpleStringAsString(HornetQBuffer buffer) |
static int |
sizeOfNullableBoolean(Boolean value) |
static int |
sizeOfNullableInteger(Integer value) |
static int |
sizeOfNullableLong(Long value) |
static int |
sizeOfNullableSimpleString(String str)
Size of a String as if it was a Nullable Simple String
|
static int |
sizeOfSimpleString(String str)
Size of a String as it if was a Simple String
|
static void |
writeAsNullableSimpleString(HornetQBuffer buffer,
String str) |
static void |
writeAsSimpleString(HornetQBuffer buffer,
String str) |
static void |
writeNullableBoolean(HornetQBuffer buffer,
Boolean value) |
static void |
writeNullableInteger(HornetQBuffer buffer,
Integer value) |
static void |
writeNullableLong(HornetQBuffer buffer,
Long value) |
public static int sizeOfNullableSimpleString(String str)
public static int sizeOfSimpleString(String str)
public static void writeAsNullableSimpleString(HornetQBuffer buffer, String str)
public static String readNullableSimpleStringAsString(HornetQBuffer buffer)
public static void writeAsSimpleString(HornetQBuffer buffer, String str)
public static void writeNullableBoolean(HornetQBuffer buffer, Boolean value)
buffer
- public static int sizeOfNullableBoolean(Boolean value)
public static Boolean readNullableBoolean(HornetQBuffer buffer)
public static void writeNullableLong(HornetQBuffer buffer, Long value)
buffer
- public static int sizeOfNullableLong(Long value)
public static Long readNullableLong(HornetQBuffer buffer)
public static void writeNullableInteger(HornetQBuffer buffer, Integer value)
buffer
- public static int sizeOfNullableInteger(Integer value)
public static Integer readNullableInteger(HornetQBuffer buffer)
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.