org.apache.commons.javaflow.utils
Class RewritingUtils
java.lang.Object
org.apache.commons.javaflow.utils.RewritingUtils
public final class RewritingUtils
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RewritingUtils
public RewritingUtils()
rewriteClassFile
public static void rewriteClassFile(File pInput,
ResourceTransformer transformer,
File pOutput)
throws IOException
- Throws:
IOException
rewriteJar
public static boolean rewriteJar(JarInputStream pInput,
ResourceTransformer transformer,
JarOutputStream pOutput)
throws IOException
- Throws:
IOException
rewriteJar
public static boolean rewriteJar(JarInputStream pInput,
ResourceTransformer transformer,
JarOutputStream pOutput,
RewritingUtils.Matcher pMatcher)
throws IOException
- Throws:
IOException
toByteArray
public static byte[] toByteArray(File f)
throws IOException
- Throws:
IOException
toByteArray
public static byte[] toByteArray(InputStream in)
throws IOException
- Throws:
IOException
copy
public static int copy(InputStream in,
OutputStream out)
throws IOException
- Copies the entire
InputStream
to the given OutputStream
.
- Returns:
- the number of bytes copied.
- Throws:
IOException
main
public static void main(String[] args)
throws FileNotFoundException,
IOException
- Throws:
FileNotFoundException
IOException
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.