public class ApacheLicenseResourceTransformer extends java.lang.Object implements ResourceTransformer
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
LICENSE_PATH |
private static java.lang.String |
LICENSE_TXT_PATH |
Constructor and Description |
---|
ApacheLicenseResourceTransformer() |
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(java.lang.String resource) |
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
|
private static final java.lang.String LICENSE_PATH
private static final java.lang.String LICENSE_TXT_PATH
public boolean canTransformResource(java.lang.String resource)
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