public class ClassFileEnhancerHelper
extends java.lang.Object
Constructor and Description |
---|
ClassFileEnhancerHelper() |
Modifier and Type | Method and Description |
---|---|
static boolean |
enhanceClassFile(ClassFileEnhancer enhancer,
java.io.InputStream in,
java.io.OutputStream out)
Enhances a classfile.
|
static boolean |
enhanceZipFile(ClassFileEnhancer enhancer,
java.util.zip.ZipInputStream zip_in,
java.util.zip.ZipOutputStream zip_out)
Enhances a zip file.
|
public static boolean enhanceClassFile(ClassFileEnhancer enhancer, java.io.InputStream in, java.io.OutputStream out) throws EnhancerUserException, EnhancerFatalError
enhancer
- The enhancer to delegate the work to.in
- The input stream with the Java class.out
- The output stream to write the enhanced class to.EnhancerUserException
- If something went wrong.EnhancerFatalError
- If something went wrong.ClassFileEnhancer.enhanceClassFile(java.io.InputStream, java.io.OutputStream)
public static boolean enhanceZipFile(ClassFileEnhancer enhancer, java.util.zip.ZipInputStream zip_in, java.util.zip.ZipOutputStream zip_out) throws EnhancerUserException, EnhancerFatalError
enhancer
- The enhancer.zip_in
- The zip input stream.zip_out
- The zip output stream.true
if at least one entry of the zip file has
been enhanced, false
otherwise.EnhancerUserException
- If something went wrong.EnhancerFatalError
- If something went wrong.ClassFileEnhancer.enhanceClassFile(java.io.InputStream, java.io.OutputStream)
Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.