Package org.apache.jasper.compiler
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) void
addSDE()
(package private) void
copy
(int count) (package private) boolean
copyAttrs
(int attrCount) (package private) int
copyConstantPool
(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 void
static void
(package private) void
randomAccessWriteU2
(int pos, int val) (package private) byte[]
readBytes
(int count) (package private) int
readU1()
(package private) int
readU2()
(package private) int
readU4()
(package private) static byte[]
(package private) void
writeAttrForSDE
(int index) (package private) void
writeBytes
(byte[] bytes) (package private) void
writeU1
(int val) (package private) void
writeU2
(int val) (package private) void
writeU4
(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()
-