public interface ResourceTransformer
Modifier and Type | Method and Description |
---|---|
boolean |
canTransformResource(String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream os) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators)
Transform an individual resource
|
boolean canTransformResource(String resource)
void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
resource
- The resoure nameis
- An input stream for the resource, the implementation should *not* close this streamrelocators
- A list of relocatorsIOException
- When the IO blows upboolean hasTransformedResource()
void modifyOutputStream(JarOutputStream os) throws IOException
IOException
Copyright © 2002–2018 The Apache Software Foundation. All rights reserved.