Class SmapUtil.SDEInstaller
java.lang.Object
org.apache.jasper.compiler.SmapUtil.SDEInstaller
- Enclosing class:
SmapUtil
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSDEInstaller(byte[] classfile, byte[] sdeAttr) SDEInstaller(File inClassFile, byte[] sdeAttr, File outClassFile) SDEInstaller(File inClassFile, File attrFile, File outClassFile) -
Method Summary
Modifier and TypeMethodDescription(package private) voidaddSDE()(package private) voidcopy(int count) (package private) booleancopyAttrs(int attrCount) (package private) intcopyConstantPool(int constantPoolCount) (package private) void(package private) static byte[]install(byte[] classfile, byte[] smap) (package private) static void(package private) static void(package private) static voidstatic void(package private) voidrandomAccessWriteU2(int pos, int val) (package private) byte[]readBytes(int count) (package private) intreadU1()(package private) intreadU2()(package private) intreadU4()(package private) static byte[](package private) voidwriteAttrForSDE(int index) (package private) voidwriteBytes(byte[] bytes) (package private) voidwriteU1(int val) (package private) voidwriteU2(int val) (package private) voidwriteU4(int val) (package private) void
-
Field Details
-
nameSDE
- See Also:
-
orig
byte[] orig -
sdeAttr
byte[] sdeAttr -
gen
byte[] gen -
origPos
int origPos -
genPos
int genPos -
sdeIndex
int sdeIndex
-
-
Constructor Details
-
SDEInstaller
SDEInstaller(byte[] classfile, byte[] sdeAttr) throws IOException - Throws:
IOException
-
SDEInstaller
SDEInstaller(File inClassFile, byte[] sdeAttr, File outClassFile) throws IOException - Throws:
IOException
-
SDEInstaller
SDEInstaller(File inClassFile, File attrFile, File outClassFile) throws IOException - Throws:
IOException
-
-
Method Details
-
main
- Throws:
IOException
-
install
- Throws:
IOException
-
install
- Throws:
IOException
-
install
- Throws:
IOException
-
install
- Throws:
IOException
-
readWhole
- Throws:
IOException
-
addSDE
-
copyMembers
void copyMembers() -
copyAttrs
boolean copyAttrs(int attrCount) -
writeAttrForSDE
void writeAttrForSDE(int index) -
randomAccessWriteU2
void randomAccessWriteU2(int pos, int val) -
readU1
int readU1() -
readU2
int readU2() -
readU4
int readU4() -
writeU1
void writeU1(int val) -
writeU2
void writeU2(int val) -
writeU4
void writeU4(int val) -
copy
void copy(int count) -
readBytes
byte[] readBytes(int count) -
writeBytes
void writeBytes(byte[] bytes) -
copyConstantPool
-
writeUtf8ForSDE
void writeUtf8ForSDE()
-