ResourceTransformer
public class ComponentsXmlResourceTransformer extends Object implements ResourceTransformer
components.xml
files.Modifier and Type | Field | Description |
---|---|---|
static String |
COMPONENTS_XML_PATH |
Constructor | Description |
---|---|
ComponentsXmlResourceTransformer() |
Modifier and Type | Method | 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 COMPONENTS_XML_PATH
public boolean canTransformResource(String resource)
canTransformResource
in interface ResourceTransformer
public void processResource(String resource, InputStream is, List<Relocator> relocators) throws 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 relocatorsIOException
- When the IO blows uppublic void modifyOutputStream(JarOutputStream jos) throws IOException
modifyOutputStream
in interface ResourceTransformer
IOException
public boolean hasTransformedResource()
hasTransformedResource
in interface ResourceTransformer
Copyright © 2002–2019 The Apache Software Foundation. All rights reserved.