public class DontIncludeResourceTransformer extends java.lang.Object implements ResourceTransformer
Modifier and Type | Field and Description |
---|---|
(package private) java.lang.String |
resource |
(package private) java.util.List<java.lang.String> |
resources |
Constructor and Description |
---|
DontIncludeResourceTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(java.lang.String r) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(java.util.jar.JarOutputStream os) |
void |
processResource(java.lang.String resource,
java.io.InputStream is,
java.util.List<Relocator> relocators)
Transform an individual resource
|
java.lang.String resource
java.util.List<java.lang.String> resources
public boolean canTransformResource(java.lang.String r)
canTransformResource
in interface ResourceTransformer
public void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators) throws java.io.IOException
ResourceTransformer
processResource
in interface ResourceTransformer
resource
- The resoure nameis
- An input stream for the resource, the implementation should *not* close this streamrelocators
- A list of relocatorsjava.io.IOException
- When the IO blows uppublic boolean hasTransformedResource()
hasTransformedResource
in interface ResourceTransformer
public void modifyOutputStream(java.util.jar.JarOutputStream os) throws java.io.IOException
modifyOutputStream
in interface ResourceTransformer
java.io.IOException