public class Encdec
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
MILLISECONDS_BETWEEN_1970_AND_1601 |
static long |
SEC_BETWEEEN_1904_AND_1970 |
static int |
TIME_1601_NANOS_64BE |
static int |
TIME_1601_NANOS_64LE |
static int |
TIME_1904_SEC_32BE |
static int |
TIME_1904_SEC_32LE |
static int |
TIME_1970_MILLIS_64BE |
static int |
TIME_1970_MILLIS_64LE |
static int |
TIME_1970_SEC_32BE |
static int |
TIME_1970_SEC_32LE |
| Constructor and Description |
|---|
Encdec() |
| Modifier and Type | Method and Description |
|---|---|
static double |
dec_doublebe(byte[] src,
int si) |
static double |
dec_doublele(byte[] src,
int si) |
static float |
dec_floatbe(byte[] src,
int si) |
static float |
dec_floatle(byte[] src,
int si) |
static java.util.Date |
dec_time(byte[] src,
int si,
int enc) |
static java.lang.String |
dec_ucs2le(byte[] src,
int si,
int slim,
char[] buf) |
static short |
dec_uint16be(byte[] src,
int si) |
static short |
dec_uint16le(byte[] src,
int si) |
static int |
dec_uint32be(byte[] src,
int si) |
static int |
dec_uint32le(byte[] src,
int si) |
static long |
dec_uint64be(byte[] src,
int si) |
static long |
dec_uint64le(byte[] src,
int si) |
static java.lang.String |
dec_utf8(byte[] src,
int si,
int slim) |
static int |
enc_doublebe(double d,
byte[] dst,
int di) |
static int |
enc_doublele(double d,
byte[] dst,
int di) |
static int |
enc_floatbe(float f,
byte[] dst,
int di) |
static int |
enc_floatle(float f,
byte[] dst,
int di) |
static int |
enc_time(java.util.Date date,
byte[] dst,
int di,
int enc) |
static int |
enc_uint16be(short s,
byte[] dst,
int di) |
static int |
enc_uint16le(short s,
byte[] dst,
int di) |
static int |
enc_uint32be(int i,
byte[] dst,
int di) |
static int |
enc_uint32le(int i,
byte[] dst,
int di) |
static int |
enc_uint64be(long l,
byte[] dst,
int di) |
static int |
enc_uint64le(long l,
byte[] dst,
int di) |
static int |
enc_utf8(java.lang.String str,
byte[] dst,
int di,
int dlim) |
public static final long MILLISECONDS_BETWEEN_1970_AND_1601
public static final long SEC_BETWEEEN_1904_AND_1970
public static final int TIME_1970_SEC_32BE
public static final int TIME_1970_SEC_32LE
public static final int TIME_1904_SEC_32BE
public static final int TIME_1904_SEC_32LE
public static final int TIME_1601_NANOS_64LE
public static final int TIME_1601_NANOS_64BE
public static final int TIME_1970_MILLIS_64BE
public static final int TIME_1970_MILLIS_64LE
public static int enc_uint16be(short s,
byte[] dst,
int di)
public static int enc_uint32be(int i,
byte[] dst,
int di)
public static int enc_uint16le(short s,
byte[] dst,
int di)
public static int enc_uint32le(int i,
byte[] dst,
int di)
public static short dec_uint16be(byte[] src,
int si)
public static int dec_uint32be(byte[] src,
int si)
public static short dec_uint16le(byte[] src,
int si)
public static int dec_uint32le(byte[] src,
int si)
public static int enc_uint64be(long l,
byte[] dst,
int di)
public static int enc_uint64le(long l,
byte[] dst,
int di)
public static long dec_uint64be(byte[] src,
int si)
public static long dec_uint64le(byte[] src,
int si)
public static int enc_floatle(float f,
byte[] dst,
int di)
public static int enc_floatbe(float f,
byte[] dst,
int di)
public static float dec_floatle(byte[] src,
int si)
public static float dec_floatbe(byte[] src,
int si)
public static int enc_doublele(double d,
byte[] dst,
int di)
public static int enc_doublebe(double d,
byte[] dst,
int di)
public static double dec_doublele(byte[] src,
int si)
public static double dec_doublebe(byte[] src,
int si)
public static int enc_time(java.util.Date date,
byte[] dst,
int di,
int enc)
public static java.util.Date dec_time(byte[] src,
int si,
int enc)
public static int enc_utf8(java.lang.String str,
byte[] dst,
int di,
int dlim)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String dec_utf8(byte[] src,
int si,
int slim)
throws java.io.IOException
java.io.IOExceptionpublic static java.lang.String dec_ucs2le(byte[] src,
int si,
int slim,
char[] buf)
throws java.io.IOException
java.io.IOException