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
IOExceptionpublic static boolean rewriteJar(JarInputStream pInput, ResourceTransformer transformer, JarOutputStream pOutput) throws IOException
IOExceptionpublic static boolean rewriteJar(JarInputStream pInput, ResourceTransformer transformer, JarOutputStream pOutput, RewritingUtils.Matcher pMatcher) throws IOException
IOExceptionpublic static byte[] toByteArray(File f) throws IOException
IOExceptionpublic static byte[] toByteArray(InputStream in) throws IOException
IOExceptionpublic static int copy(InputStream in, OutputStream out) throws IOException
InputStream to the given OutputStream.IOExceptionpublic static void main(String[] args) throws FileNotFoundException, IOException
FileNotFoundExceptionIOExceptionCopyright © 2004–2025. All rights reserved.