public class PluginXmlResourceTransformer extends Object implements ResourceTransformer
plugin.xml files.| Modifier and Type | Field and Description |
|---|---|
static String |
PLUGIN_XML_PATH |
| Constructor and Description |
|---|
PluginXmlResourceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransformResource(String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(JarOutputStream jos) |
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators)
Transform an individual resource
|
public static final String PLUGIN_XML_PATH
public boolean canTransformResource(String resource)
canTransformResource in interface ResourceTransformerpublic void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
ResourceTransformerprocessResource in interface ResourceTransformerresource - The resoure nameis - An input stream for the resource, the implementation should *not* close this streamrelocators - A list of relocatorsIOException - When the IO blows uppublic void modifyOutputStream(JarOutputStream jos) throws IOException
modifyOutputStream in interface ResourceTransformerIOExceptionpublic boolean hasTransformedResource()
hasTransformedResource in interface ResourceTransformerCopyright © 2002–2016 The Apache Software Foundation. All rights reserved.