public class ComponentsXmlResourceTransformer extends Object
components.xml files.| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENTS_XML_PATH |
| Constructor and Description |
|---|
ComponentsXmlResourceTransformer() |
| 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
|
void |
processResource(String resource,
InputStream is,
List<Relocator> relocators,
long time)
Transform an individual resource
|
public static final String COMPONENTS_XML_PATH
public boolean canTransformResource(String resource)
public void processResource(String resource, InputStream is, List<Relocator> relocators, long time) throws IOException
ReproducibleResourceTransformerresource - The resource nameis - An input stream for the resource, the implementation should *not* close this streamrelocators - A list of relocatorstime - the time of the resource to processIOException - When the IO blows uppublic void modifyOutputStream(JarOutputStream jos) throws IOException
IOExceptionpublic boolean hasTransformedResource()
public final void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
ResourceTransformerprocessResource in interface ResourceTransformerresource - The resource nameis - An input stream for the resource, the implementation should *not* close this streamrelocators - A list of relocatorsIOException - When the IO blows upCopyright © 2002–2022 The Apache Software Foundation. All rights reserved.