public final class MarshallingSupport extends Object
Modifier and Type | Field and Description |
---|---|
static byte |
BIG_STRING_TYPE |
static byte |
BOOLEAN_TYPE |
static byte |
BYTE_ARRAY_TYPE |
static byte |
BYTE_TYPE |
static byte |
CHAR_TYPE |
static byte |
DOUBLE_TYPE |
static byte |
FLOAT_TYPE |
static byte |
INTEGER_TYPE |
static byte |
LIST_TYPE |
static byte |
LONG_TYPE |
static byte |
MAP_TYPE |
static byte |
NULL |
static byte |
SHORT_TYPE |
static byte |
STRING_TYPE |
Modifier and Type | Method and Description |
---|---|
static String |
convertUTF8WithBuf(byte[] buf,
char[] out,
int offset,
int utfSize)
From: http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/org/apache/harmony/luni/util/Util.java
|
static long |
countUTFBytes(String str)
From: http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/DataOutputStream.java
|
static void |
marshalBoolean(DataOutputStream out,
boolean value) |
static void |
marshalByte(DataOutputStream out,
byte value) |
static void |
marshalByteArray(DataOutputStream out,
byte[] value) |
static void |
marshalByteArray(DataOutputStream out,
byte[] value,
int offset,
int length) |
static void |
marshalChar(DataOutputStream out,
char value) |
static void |
marshalDouble(DataOutputStream out,
double value) |
static void |
marshalFloat(DataOutputStream out,
float value) |
static void |
marshalInt(DataOutputStream out,
int value) |
static void |
marshalLong(DataOutputStream out,
long value) |
static void |
marshalNull(DataOutputStream out) |
static void |
marshalPrimitive(DataOutputStream out,
Object value) |
static void |
marshalPrimitiveList(List<Object> list,
DataOutputStream out) |
static void |
marshalPrimitiveMap(Map<String,Object> map,
DataOutputStream out) |
static void |
marshalShort(DataOutputStream out,
short value) |
static void |
marshalString(DataOutputStream out,
String s) |
static String |
propertiesToString(Properties props) |
static org.fusesource.hawtbuf.UTF8Buffer |
readUTF(DataInputStream in,
int length) |
static String |
readUTF8(DataInput dataIn) |
static Properties |
stringToProperties(String str) |
static String |
truncate64(String text) |
static Object |
unmarshalPrimitive(DataInputStream in) |
static Object |
unmarshalPrimitive(DataInputStream in,
boolean force) |
static List<Object> |
unmarshalPrimitiveList(DataInputStream in) |
static List<Object> |
unmarshalPrimitiveList(DataInputStream in,
boolean force) |
static Map<String,Object> |
unmarshalPrimitiveMap(DataInputStream in) |
static Map<String,Object> |
unmarshalPrimitiveMap(DataInputStream in,
boolean force) |
static Map<String,Object> |
unmarshalPrimitiveMap(DataInputStream in,
int maxPropertySize) |
static Map<String,Object> |
unmarshalPrimitiveMap(DataInputStream in,
int maxPropertySize,
boolean force) |
static void |
writeUTF8(DataOutput dataOut,
String text) |
static int |
writeUTFBytesToBuffer(String str,
long count,
byte[] buffer,
int offset)
From: http://svn.apache.org/repos/asf/harmony/enhanced/java/trunk/classlib/modules/luni/src/main/java/java/io/DataOutputStream.java
|
public static final byte NULL
public static final byte BOOLEAN_TYPE
public static final byte BYTE_TYPE
public static final byte CHAR_TYPE
public static final byte SHORT_TYPE
public static final byte INTEGER_TYPE
public static final byte LONG_TYPE
public static final byte DOUBLE_TYPE
public static final byte FLOAT_TYPE
public static final byte STRING_TYPE
public static final byte BYTE_ARRAY_TYPE
public static final byte MAP_TYPE
public static final byte LIST_TYPE
public static final byte BIG_STRING_TYPE
public static void marshalPrimitiveMap(Map<String,Object> map, DataOutputStream out) throws IOException
IOException
public static Map<String,Object> unmarshalPrimitiveMap(DataInputStream in) throws IOException
IOException
public static Map<String,Object> unmarshalPrimitiveMap(DataInputStream in, boolean force) throws IOException
IOException
public static Map<String,Object> unmarshalPrimitiveMap(DataInputStream in, int maxPropertySize) throws IOException
IOException
public static Map<String,Object> unmarshalPrimitiveMap(DataInputStream in, int maxPropertySize, boolean force) throws IOException
in
- IOException
IOException
public static void marshalPrimitiveList(List<Object> list, DataOutputStream out) throws IOException
IOException
public static List<Object> unmarshalPrimitiveList(DataInputStream in) throws IOException
IOException
public static List<Object> unmarshalPrimitiveList(DataInputStream in, boolean force) throws IOException
IOException
public static void marshalPrimitive(DataOutputStream out, Object value) throws IOException
IOException
public static Object unmarshalPrimitive(DataInputStream in) throws IOException
IOException
public static Object unmarshalPrimitive(DataInputStream in, boolean force) throws IOException
IOException
public static org.fusesource.hawtbuf.UTF8Buffer readUTF(DataInputStream in, int length) throws IOException
IOException
public static void marshalNull(DataOutputStream out) throws IOException
IOException
public static void marshalBoolean(DataOutputStream out, boolean value) throws IOException
IOException
public static void marshalByte(DataOutputStream out, byte value) throws IOException
IOException
public static void marshalChar(DataOutputStream out, char value) throws IOException
IOException
public static void marshalShort(DataOutputStream out, short value) throws IOException
IOException
public static void marshalInt(DataOutputStream out, int value) throws IOException
IOException
public static void marshalLong(DataOutputStream out, long value) throws IOException
IOException
public static void marshalFloat(DataOutputStream out, float value) throws IOException
IOException
public static void marshalDouble(DataOutputStream out, double value) throws IOException
IOException
public static void marshalByteArray(DataOutputStream out, byte[] value) throws IOException
IOException
public static void marshalByteArray(DataOutputStream out, byte[] value, int offset, int length) throws IOException
IOException
public static void marshalString(DataOutputStream out, String s) throws IOException
IOException
public static void writeUTF8(DataOutput dataOut, String text) throws IOException
IOException
public static long countUTFBytes(String str)
public static int writeUTFBytesToBuffer(String str, long count, byte[] buffer, int offset) throws IOException
IOException
public static String readUTF8(DataInput dataIn) throws IOException
IOException
public static String convertUTF8WithBuf(byte[] buf, char[] out, int offset, int utfSize) throws UTFDataFormatException
UTFDataFormatException
public static String propertiesToString(Properties props) throws IOException
IOException
public static Properties stringToProperties(String str) throws IOException
IOException
public static String truncate64(String text)
Copyright © 2005–2021 FuseSource, Corp.. All rights reserved.