public class ClassConverter extends Object implements Converter, ClassFileTransformer
| Constructor and Description |
|---|
ClassConverter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accepts(String filename) |
void |
convert(String path,
InputStream src,
OutputStream dest,
EESpecProfile profile)
Copies the source to the destination, converting it if necessary,
according to the requirements of the given profile.
|
byte[] |
transform(ClassLoader loader,
String className,
Class<?> classBeingRedefined,
ProtectionDomain protectionDomain,
byte[] classfileBuffer) |
public void convert(String path, InputStream src, OutputStream dest, EESpecProfile profile) throws IOException
Converterconvert in interface Converterpath - The path to the data being convertedsrc - The source data to convertdest - The destination to write the converted dataprofile - The profile that defines the conversion requiredIOException - If the conversion failspublic byte[] transform(ClassLoader loader, String className, Class<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer) throws IllegalClassFormatException
transform in interface ClassFileTransformerIllegalClassFormatExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.