Package jcifs.smb1.util
Class Encdec
- java.lang.Object
-
- jcifs.smb1.util.Encdec
-
public class Encdec extends Object
-
-
Field Summary
Fields Modifier and Type Field Description static longMILLISECONDS_BETWEEN_1970_AND_1601static longSEC_BETWEEEN_1904_AND_1970static intTIME_1601_NANOS_64BEstatic intTIME_1601_NANOS_64LEstatic intTIME_1904_SEC_32BEstatic intTIME_1904_SEC_32LEstatic intTIME_1970_MILLIS_64BEstatic intTIME_1970_MILLIS_64LEstatic intTIME_1970_SEC_32BEstatic intTIME_1970_SEC_32LE
-
Constructor Summary
Constructors Constructor Description Encdec()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static doubledec_doublebe(byte[] src, int si)static doubledec_doublele(byte[] src, int si)static floatdec_floatbe(byte[] src, int si)static floatdec_floatle(byte[] src, int si)static Datedec_time(byte[] src, int si, int enc)static Stringdec_ucs2le(byte[] src, int si, int slim, char[] buf)static shortdec_uint16be(byte[] src, int si)static shortdec_uint16le(byte[] src, int si)static intdec_uint32be(byte[] src, int si)static intdec_uint32le(byte[] src, int si)static longdec_uint64be(byte[] src, int si)static longdec_uint64le(byte[] src, int si)static Stringdec_utf8(byte[] src, int si, int slim)static intenc_doublebe(double d, byte[] dst, int di)static intenc_doublele(double d, byte[] dst, int di)static intenc_floatbe(float f, byte[] dst, int di)static intenc_floatle(float f, byte[] dst, int di)static intenc_time(Date date, byte[] dst, int di, int enc)static intenc_uint16be(short s, byte[] dst, int di)static intenc_uint16le(short s, byte[] dst, int di)static intenc_uint32be(int i, byte[] dst, int di)static intenc_uint32le(int i, byte[] dst, int di)static intenc_uint64be(long l, byte[] dst, int di)static intenc_uint64le(long l, byte[] dst, int di)static intenc_utf8(String str, byte[] dst, int di, int dlim)
-
-
-
Field Detail
-
MILLISECONDS_BETWEEN_1970_AND_1601
public static final long MILLISECONDS_BETWEEN_1970_AND_1601
- See Also:
- Constant Field Values
-
SEC_BETWEEEN_1904_AND_1970
public static final long SEC_BETWEEEN_1904_AND_1970
- See Also:
- Constant Field Values
-
TIME_1970_SEC_32BE
public static final int TIME_1970_SEC_32BE
- See Also:
- Constant Field Values
-
TIME_1970_SEC_32LE
public static final int TIME_1970_SEC_32LE
- See Also:
- Constant Field Values
-
TIME_1904_SEC_32BE
public static final int TIME_1904_SEC_32BE
- See Also:
- Constant Field Values
-
TIME_1904_SEC_32LE
public static final int TIME_1904_SEC_32LE
- See Also:
- Constant Field Values
-
TIME_1601_NANOS_64LE
public static final int TIME_1601_NANOS_64LE
- See Also:
- Constant Field Values
-
TIME_1601_NANOS_64BE
public static final int TIME_1601_NANOS_64BE
- See Also:
- Constant Field Values
-
TIME_1970_MILLIS_64BE
public static final int TIME_1970_MILLIS_64BE
- See Also:
- Constant Field Values
-
TIME_1970_MILLIS_64LE
public static final int TIME_1970_MILLIS_64LE
- See Also:
- Constant Field Values
-
-
Method Detail
-
enc_uint16be
public static int enc_uint16be(short s, byte[] dst, int di)
-
enc_uint32be
public static int enc_uint32be(int i, byte[] dst, int di)
-
enc_uint16le
public static int enc_uint16le(short s, byte[] dst, int di)
-
enc_uint32le
public static int enc_uint32le(int i, byte[] dst, int di)
-
dec_uint16be
public static short dec_uint16be(byte[] src, int si)
-
dec_uint32be
public static int dec_uint32be(byte[] src, int si)
-
dec_uint16le
public static short dec_uint16le(byte[] src, int si)
-
dec_uint32le
public static int dec_uint32le(byte[] src, int si)
-
enc_uint64be
public static int enc_uint64be(long l, byte[] dst, int di)
-
enc_uint64le
public static int enc_uint64le(long l, byte[] dst, int di)
-
dec_uint64be
public static long dec_uint64be(byte[] src, int si)
-
dec_uint64le
public static long dec_uint64le(byte[] src, int si)
-
enc_floatle
public static int enc_floatle(float f, byte[] dst, int di)
-
enc_floatbe
public static int enc_floatbe(float f, byte[] dst, int di)
-
dec_floatle
public static float dec_floatle(byte[] src, int si)
-
dec_floatbe
public static float dec_floatbe(byte[] src, int si)
-
enc_doublele
public static int enc_doublele(double d, byte[] dst, int di)
-
enc_doublebe
public static int enc_doublebe(double d, byte[] dst, int di)
-
dec_doublele
public static double dec_doublele(byte[] src, int si)
-
dec_doublebe
public static double dec_doublebe(byte[] src, int si)
-
enc_time
public static int enc_time(Date date, byte[] dst, int di, int enc)
-
dec_time
public static Date dec_time(byte[] src, int si, int enc)
-
enc_utf8
public static int enc_utf8(String str, byte[] dst, int di, int dlim) throws IOException
- Throws:
IOException
-
dec_utf8
public static String dec_utf8(byte[] src, int si, int slim) throws IOException
- Throws:
IOException
-
dec_ucs2le
public static String dec_ucs2le(byte[] src, int si, int slim, char[] buf) throws IOException
- Throws:
IOException
-
-