public class Serialization
extends java.lang.Object
implements java.io.Closeable
Modifier and Type | Field and Description |
---|---|
int |
SerialHandle |
static int |
SERIALIZATION_ARRAY |
static int |
SERIALIZATION_BOOL |
static int |
SERIALIZATION_CHAR |
static int |
SERIALIZATION_COLOR |
static int |
SERIALIZATION_DATETIME |
static int |
SERIALIZATION_DOUBLE |
static int |
SERIALIZATION_ERROR |
static int |
SERIALIZATION_FLOAT |
static int |
SERIALIZATION_INT |
static int |
SERIALIZATION_INTEGER |
static int |
SERIALIZATION_LONG |
static int |
SERIALIZATION_SHORT |
static int |
SERIALIZATION_STRING |
static int |
SERIALIZATION_STRUCT |
static int |
SERIALIZATION_UCHAR |
static int |
SERIALIZATION_UINT |
static int |
SERIALIZATION_UINTEGER |
static int |
SERIALIZATION_ULONG |
static int |
SERIALIZATION_USHORT |
Constructor and Description |
---|
Serialization() |
Serialization(java.lang.String path) |
Serialization(java.lang.String path,
boolean write) |
Serialization(java.lang.String path,
boolean write,
boolean common) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
static int |
getSerialType(java.lang.String nametype) |
int |
init() |
int |
init(boolean write) |
int |
init(boolean write,
java.lang.String path) |
int |
init(boolean write,
java.lang.String path,
boolean common) |
long |
writeArray(boolean[] array) |
long |
writeArray(byte[] array) |
long |
writeArray(char[] array) |
long |
writeArray(double[] array) |
long |
writeArray(float[] array) |
long |
writeArray(int[] array) |
long |
writeArray(long[] array) |
long |
writeArray(java.lang.Object[] array) |
long |
writeArray(short[] array) |
long |
writeDouble(double number) |
long |
writeDouble(double number,
int type) |
long |
writeNumber(boolean number,
int type) |
long |
writeNumber(long number) |
long |
writeNumber(long number,
int type) |
long |
writeString(java.lang.String str) |
long |
writeStringArray(java.lang.String[] array) |
long |
writeStruct(java.lang.Object Struct) |
long |
writeStructArray(java.lang.Object[] array) |
long |
writeType(int type) |
public static final int SERIALIZATION_ERROR
public static final int SERIALIZATION_BOOL
public static final int SERIALIZATION_CHAR
public static final int SERIALIZATION_UCHAR
public static final int SERIALIZATION_SHORT
public static final int SERIALIZATION_USHORT
public static final int SERIALIZATION_INT
public static final int SERIALIZATION_UINT
public static final int SERIALIZATION_COLOR
public static final int SERIALIZATION_INTEGER
public static final int SERIALIZATION_UINTEGER
public static final int SERIALIZATION_LONG
public static final int SERIALIZATION_ULONG
public static final int SERIALIZATION_DATETIME
public static final int SERIALIZATION_FLOAT
public static final int SERIALIZATION_DOUBLE
public static final int SERIALIZATION_STRING
public static final int SERIALIZATION_STRUCT
public static final int SERIALIZATION_ARRAY
public int SerialHandle
public Serialization()
public Serialization(java.lang.String path)
public Serialization(java.lang.String path, boolean write)
public Serialization(java.lang.String path, boolean write, boolean common)
protected void finalize() throws java.lang.Throwable
finalize
in class java.lang.Object
java.lang.Throwable
public void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
public int init()
public int init(boolean write)
public int init(boolean write, java.lang.String path)
public int init(boolean write, java.lang.String path, boolean common)
public long writeType(int type)
public long writeNumber(long number)
public long writeNumber(boolean number, int type)
public long writeNumber(long number, int type)
public long writeDouble(double number)
public long writeDouble(double number, int type)
public long writeArray(java.lang.Object[] array)
public long writeString(java.lang.String str)
public long writeStringArray(java.lang.String[] array)
public long writeStruct(java.lang.Object Struct)
public long writeStructArray(java.lang.Object[] array)
public static int getSerialType(java.lang.String nametype)
public long writeArray(boolean[] array)
public long writeArray(byte[] array)
public long writeArray(char[] array)
public long writeArray(short[] array)
public long writeArray(int[] array)
public long writeArray(long[] array)
public long writeArray(float[] array)
public long writeArray(double[] array)