AE_CNST, AE_CNST_W, AE_CNST2_W, AE_FIELDREF, AE_I_D0, AE_I_D1, AE_I_F0, AE_I_F1, AE_I_F2, AE_I_I0, AE_I_I1, AE_I_I2, AE_I_I3, AE_I_I4, AE_I_I5, AE_I_IML, AE_I_L0, AE_I_L1, AE_I_LAST, AE_I_NULL, AE_IFMETHOD, AE_METHODREF, AE_REFTYPEREF, AE_S1, AE_S2, AE_U1, AE_U2, AE_U4, BRANCH, BYTE, CNST, CONSTANT_CLASS, CONSTANT_DOUBLE, CONSTANT_FIELDREF, CONSTANT_FLOAT, CONSTANT_INTEGER, CONSTANT_INTERFACEMETHODREF, CONSTANT_LONG, CONSTANT_METHODREF, CONSTANT_NAMEANDTYPE, CONSTANT_STRING, CONSTANT_UTF8, ERROR_STACK, FIELDREF, GETFIELD_STACK, GETSTATIC_STACK, IFMETHOD, IMPLICIT, INC, INVOKEINTERFACE_STACK, INVOKESPECIAL_STACK, INVOKESTATIC_STACK, INVOKEVIRTUAL_STACK, LDC_STACK, LS, LV, MAGIC, METHODREF, MULTIARRAY_STACK, PUTFIELD_STACK, PUTSTATIC_STACK, REFTYPEREF, RT, SIMPLE, SUCC_BRANCH, SUCC_GOTO, SUCC_JSR, SUCC_LOOKUPSWITCH, SUCC_NEXT, SUCC_NONE, SUCC_RET, SUCC_TABLESWITCH, T_BOOLEAN, T_BYTE, T_CHAR, T_DOUBLE, T_FLOAT, T_INT, T_LONG, T_REFERENCE, T_SHORT, T_VOID, TS, TYPE_BYTE, VBRANCH| Constructor and Description |
|---|
Pool() |
| Modifier and Type | Method and Description |
|---|---|
int |
addIfNew(int id,
Object obj) |
static String |
fromUtf8(byte[] info,
int ofs,
int max) |
Object |
get(int idx) |
int |
indexOf(int id,
Object obj) |
int |
indexOf(Object obj) |
void |
load(InputStream src) |
int |
size() |
static byte[] |
toUtf8(String str)
This implementation differs from String.getBytes("UFT-8"), e.g. when decoding 0.
|
void |
write(OutputStream dest) |
int |
write(OutputStream dest,
int id,
Object obj) |
int |
writeShort(OutputStream dest,
int id,
Object obj) |
public int size()
public void load(InputStream src) throws IOException
IOExceptionpublic void write(OutputStream dest) throws IOException
IOExceptionpublic Object get(int idx)
public int write(OutputStream dest, int id, Object obj) throws IOException
IOExceptionpublic int writeShort(OutputStream dest, int id, Object obj) throws IOException
IOExceptionpublic int indexOf(Object obj)
public int indexOf(int id,
Object obj)
public int addIfNew(int id,
Object obj)
public static String fromUtf8(byte[] info, int ofs, int max)
public static byte[] toUtf8(String str)
Copyright © 1998–2017 1&1. All rights reserved.