public class InputStreamTransform extends Object
| Constructor and Description |
|---|
InputStreamTransform(Transformer transformer,
ClassLoader classLoader) |
| Modifier and Type | Method and Description |
|---|---|
void |
log(int level,
String msg) |
static byte[] |
readBytes(InputStream is) |
byte[] |
transform(String className,
File file)
Transform a file.
|
byte[] |
transform(String className,
InputStream is)
Transform a input stream.
|
static void |
writeBytes(byte[] bytes,
File file)
Helper method to write bytes to a file.
|
static void |
writeBytes(byte[] bytes,
OutputStream os)
Helper method to write bytes to a OutputStream.
|
public InputStreamTransform(Transformer transformer, ClassLoader classLoader)
public void log(int level,
String msg)
public byte[] transform(String className, File file) throws IOException, IllegalClassFormatException
public byte[] transform(String className, InputStream is) throws IOException, IllegalClassFormatException
public static void writeBytes(byte[] bytes,
File file)
throws IOException
IOExceptionpublic static void writeBytes(byte[] bytes,
OutputStream os)
throws IOException
IOExceptionpublic static byte[] readBytes(InputStream is) throws IOException
IOExceptionCopyright © 2016. All rights reserved.