|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object joeq.UTF.Utf8
public class Utf8
TODO: ummm, synchronization?!
Nested Class Summary | |
---|---|
class |
Utf8.MethodDescriptorIterator
|
Field Summary | |
---|---|
static Utf8 |
BOOLEAN_DESC
|
static Utf8 |
BYTE_DESC
|
static int[][] |
chains
|
static Utf8 |
CHAR_DESC
|
static boolean |
DEBUG
|
static Utf8 |
DOUBLE_DESC
|
static Utf8 |
FLOAT_DESC
|
static Utf8 |
INT_DESC
|
static Utf8 |
LONG_DESC
|
static boolean |
NO_NEW
|
static Utf8 |
SHORT_DESC
|
static int |
size
|
static int |
STARTING_CHAIN_SIZE
|
static int |
STARTING_HASH_SIZE
|
static int |
STARTING_TABLE_SIZE
|
static Utf8[] |
table
|
static boolean |
TRACE
|
static boolean |
USE_CACHE
|
static Utf8 |
VOID_DESC
|
Method Summary | |
---|---|
static boolean |
checkUtf8(byte[] bytes)
Check whether the given sequence of bytes is valid (pseudo-)utf8. |
void |
debugWrite()
|
void |
dump(DataOutput out)
|
static String |
fromUtf8(byte[] utf8)
Convert the given sequence of (pseudo-)utf8 formatted bytes into a String. |
static Utf8 |
get(byte[] b)
|
static Utf8 |
get(byte[] b,
int startIndex,
int endIndex)
|
static Utf8 |
get(String s)
|
Utf8 |
getArrayElementDescriptor()
|
Utf8 |
getAsArrayDescriptor()
|
Utf8 |
getAsClassDescriptor()
|
Utf8 |
getClassName()
|
static int |
getID(byte[] b)
|
static int |
getID(byte[] b,
int startIndex,
int endIndex)
|
Utf8.MethodDescriptorIterator |
getParamDescriptors()
|
int |
hashCode()
|
static int |
hashCode(byte[] data)
|
static int |
hashCode(byte[] data,
int startIndex,
int endIndex)
|
boolean |
isDescriptor(byte desc)
|
boolean |
isValidMethodDescriptor()
|
boolean |
isValidTypeDescriptor()
|
static int |
lengthUtf8(String s)
Returns the length of a string's utf8 encoded form. |
String |
toString()
|
static byte[] |
toUtf8(String s)
Convert the given String into a sequence of (pseudo-)utf8 formatted bytes. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static boolean TRACE
public static final int STARTING_TABLE_SIZE
public static final int STARTING_HASH_SIZE
public static final int STARTING_CHAIN_SIZE
public static Utf8[] table
public static int size
public static int[][] chains
public static final Utf8 BYTE_DESC
public static final Utf8 CHAR_DESC
public static final Utf8 DOUBLE_DESC
public static final Utf8 FLOAT_DESC
public static final Utf8 INT_DESC
public static final Utf8 LONG_DESC
public static final Utf8 SHORT_DESC
public static final Utf8 BOOLEAN_DESC
public static final Utf8 VOID_DESC
public static boolean NO_NEW
public static final boolean USE_CACHE
public static final boolean DEBUG
Method Detail |
---|
public static Utf8 get(String s)
public static Utf8 get(byte[] b)
public static Utf8 get(byte[] b, int startIndex, int endIndex)
public static int getID(byte[] b)
public static int getID(byte[] b, int startIndex, int endIndex)
public boolean isValidMethodDescriptor()
public boolean isValidTypeDescriptor()
public boolean isDescriptor(byte desc)
public Utf8 getArrayElementDescriptor()
public Utf8 getClassName()
public Utf8 getAsArrayDescriptor()
public Utf8 getAsClassDescriptor()
public Utf8.MethodDescriptorIterator getParamDescriptors()
public static int hashCode(byte[] data)
public static int hashCode(byte[] data, int startIndex, int endIndex)
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void dump(DataOutput out) throws IOException
IOException
public void debugWrite()
public static String fromUtf8(byte[] utf8) throws UTFDataFormatError
utf8
- (pseudo-)utf8 byte array
UTFDataFormatError
- if the (pseudo-)utf8 byte array is not valid (pseudo-)utf8public static byte[] toUtf8(String s)
s
- String to convert
public static int lengthUtf8(String s)
public static boolean checkUtf8(byte[] bytes)
bytes
- byte array to check
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |