public final class RewritingUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
RewritingUtils.Matcher |
Constructor and Description |
---|
RewritingUtils() |
Modifier and Type | Method and Description |
---|---|
static int |
copy(InputStream in,
OutputStream out)
Copies the entire
InputStream to the given OutputStream . |
static void |
main(String[] args) |
static void |
rewriteClassFile(File pInput,
ResourceTransformer transformer,
File pOutput) |
static boolean |
rewriteJar(JarInputStream pInput,
ResourceTransformer transformer,
JarOutputStream pOutput) |
static boolean |
rewriteJar(JarInputStream pInput,
ResourceTransformer transformer,
JarOutputStream pOutput,
RewritingUtils.Matcher pMatcher) |
static byte[] |
toByteArray(File f) |
static byte[] |
toByteArray(InputStream in) |
public static void rewriteClassFile(File pInput, ResourceTransformer transformer, File pOutput) throws IOException
IOException
public static boolean rewriteJar(JarInputStream pInput, ResourceTransformer transformer, JarOutputStream pOutput) throws IOException
IOException
public static boolean rewriteJar(JarInputStream pInput, ResourceTransformer transformer, JarOutputStream pOutput, RewritingUtils.Matcher pMatcher) throws IOException
IOException
public static byte[] toByteArray(File f) throws IOException
IOException
public static byte[] toByteArray(InputStream in) throws IOException
IOException
public static int copy(InputStream in, OutputStream out) throws IOException
InputStream
to the given OutputStream
.IOException
public static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundException
IOException
Copyright © 2004-2013. All Rights Reserved.