|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exist.util.ByteConversion
Description of the Class
Field Summary | |
static int |
BYTE
Description of the Field |
static int |
INT
Description of the Field |
static int |
LONG
Description of the Field |
static int |
SHORT
Description of the Field |
Constructor Summary | |
ByteConversion()
|
Method Summary | |
static int |
byteToInt(byte[] data,
int start)
Description of the Method |
static long |
byteToLong(byte[] data,
int start)
Description of the Method |
static short |
byteToShort(byte[] data,
int start)
Description of the Method |
static byte[] |
compress(int sizeType,
int i)
|
static byte[] |
compress(int sizeType,
long l)
Description of the Method |
static int |
decodeLength(byte[] data,
int start)
Description of the Method |
static long |
decompress(int sizeType,
byte[] data,
int start)
Description of the Method |
static java.lang.String |
dumpToHex(byte[] data)
Description of the Method |
static byte[] |
encodeNodeP(int docId,
long gid)
Description of the Method |
static int |
getSize(int sizeType)
Gets the size attribute of the ByteConversion class |
static int |
getSizeType(long l)
Gets the type attribute of the ByteConversion class |
static byte[] |
intToByte(int v)
Description of the Method |
static byte[] |
intToByte(int v,
byte[] data,
int start)
Description of the Method |
static byte[] |
longToByte(long v)
Description of the Method |
static byte[] |
longToByte(long v,
byte[] data,
int start)
Description of the Method |
static byte[] |
shortToByte(short v)
Description of the Method |
static byte[] |
shortToByte(short v,
byte[] data,
int start)
Description of the Method |
static byte[] |
string2UTF8(java.lang.String s)
Description of the Method |
static byte[] |
trunc(byte[] data)
Description of the Method |
static byte[] |
truncate(byte[] data)
Description of the Method |
static java.lang.String |
UTF82String(byte[] data,
int pointer,
int len)
Description of the Method |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BYTE
public static final int INT
public static final int LONG
public static final int SHORT
Constructor Detail |
public ByteConversion()
Method Detail |
public static final java.lang.String UTF82String(byte[] data, int pointer, int len)
data
- Description of the Parameterpointer
- Description of the Parameterlen
- Description of the Parameter
public static final int byteToInt(byte[] data, int start)
data
- Description of the Parameterstart
- Description of the Parameter
public static final long byteToLong(byte[] data, int start)
data
- Description of the Parameterstart
- Description of the Parameter
public static final short byteToShort(byte[] data, int start)
data
- Description of the Parameterstart
- Description of the Parameter
public static byte[] compress(int sizeType, long l)
l
- Description of the ParametersizeType
- Description of the Parameter
public static byte[] compress(int sizeType, int i)
public static final int decodeLength(byte[] data, int start)
data
- Description of the Parameterstart
- Description of the Parameter
public static long decompress(int sizeType, byte[] data, int start)
sizeType
- Description of the Parameterdata
- Description of the Parameterstart
- Description of the Parameter
public static final java.lang.String dumpToHex(byte[] data)
data
- Description of the Parameter
public static final byte[] encodeNodeP(int docId, long gid)
docId
- Description of the Parametergid
- Description of the Parameter
public static int getSize(int sizeType)
sizeType
- Description of the Parameter
public static int getSizeType(long l)
l
- Description of the Parameter
public static final byte[] intToByte(int v, byte[] data, int start)
v
- Description of the Parameterdata
- Description of the Parameterstart
- Description of the Parameter
public static final byte[] intToByte(int v)
v
- Description of the Parameter
public static final byte[] longToByte(long v, byte[] data, int start)
v
- Description of the Parameterdata
- Description of the Parameterstart
- Description of the Parameter
public static final byte[] longToByte(long v)
v
- Description of the Parameter
public static final byte[] shortToByte(short v, byte[] data, int start)
v
- Description of the Parameterdata
- Description of the Parameterstart
- Description of the Parameter
public static final byte[] shortToByte(short v)
v
- Description of the Parameter
public static final byte[] string2UTF8(java.lang.String s)
s
- Description of the Parameter
public static final byte[] trunc(byte[] data)
data
- Description of the Parameter
public static final byte[] truncate(byte[] data)
data
- Description of the Parameter
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |