| Modifier and Type | Field and Description |
|---|---|
| private static final Logger | |
| protected final EESpecProfile | profile
The configured spec profile. |
| private static final StringManager |
| Access | Constructor and Description |
|---|---|
| public | |
| public | ClassConverter(EESpecProfile
the specification profile to use for conversion profile)Create a class converter with the specified spec profile. |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | accepts(String
the file name filename)Implements org. |
| public boolean | convert(String
The path to the data being converted path, InputStream The source data to convert src, OutputStream The destination to write the converted data dest, EESpecProfile The profile that defines the conversion required profile)Implements org. |
| protected boolean | Returns: true if conversion occurredthe path path, InputStream the source byte stream src, OutputStream the output byte stream dest, EESpecProfile the specification profile to use profile, ClassLoader the class loader loader)Convert specified class bytecode. |
| public String | |
| public byte[] | transform(ClassLoader
the defining loader of the class to be transformed,
may be loader, String null if the bootstrap loaderthe name of the class in the internal form of fully
qualified class and interface names as defined in
The Java Virtual Machine Specification.
For example, className, Class<?> "java/util/List".if this is triggered by a redefine or retransform,
the class being redefined or retransformed;
if this is a class load, classBeingRedefined, ProtectionDomain nullthe protection domain of the class being defined or redefined protectionDomain, byte[] the input byte buffer in class file format - must not be modified classfileBuffer)Overrides default java. |
| logger | back to summary |
|---|---|
| private static final Logger logger | |
| profile | back to summary |
|---|---|
| protected final EESpecProfile profile The configured spec profile. | |
| sm | back to summary |
|---|---|
| private static final StringManager sm | |
| ClassConverter | back to summary |
|---|---|
| public ClassConverter() Create a class converter with the default TOMCAT profile. | |
| ClassConverter | back to summary |
|---|---|
| public ClassConverter(EESpecProfile profile) Create a class converter with the specified spec profile.
| |
| accepts | back to summary |
|---|---|
| public boolean accepts(String filename) Implements org. Doc from org. Check if the file can be processed by this converter. | |
| convert | back to summary |
|---|---|
| public boolean convert(String path, InputStream src, OutputStream dest, EESpecProfile profile) throws IOException Implements org. Doc from org. Copies the source to the destination, converting it if necessary, according to the requirements of the given profile.
| |
| convertInternal | back to summary |
|---|---|
| protected boolean convertInternal(String path, InputStream src, OutputStream dest, EESpecProfile profile, ClassLoader loader) throws IOException Convert specified class bytecode.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |
| transform | back to summary |
|---|---|
| public byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException Overrides default java. Doc from java. Transforms the given class file and returns a new replacement class file.
This method is invoked when the
| |