public class ServicesResourceTransformer extends java.lang.Object implements ResourceTransformer
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
ServicesResourceTransformer.ServiceStream |
| Modifier and Type | Field and Description |
|---|---|
private java.util.List<Relocator> |
relocators |
private java.util.Map<java.lang.String,ServicesResourceTransformer.ServiceStream> |
serviceEntries |
private static java.lang.String |
SERVICES_PATH |
| Constructor and Description |
|---|
ServicesResourceTransformer() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canTransformResource(java.lang.String resource) |
boolean |
hasTransformedResource() |
void |
modifyOutputStream(java.util.jar.JarOutputStream jos) |
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 SERVICES_PATH
private java.util.Map<java.lang.String,ServicesResourceTransformer.ServiceStream> serviceEntries
private java.util.List<Relocator> relocators
public boolean canTransformResource(java.lang.String resource)
canTransformResource in interface ResourceTransformerpublic void processResource(java.lang.String resource,
java.io.InputStream is,
java.util.List<Relocator> relocators)
throws java.io.IOException
ResourceTransformerprocessResource in interface ResourceTransformerresource - 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 ResourceTransformerpublic void modifyOutputStream(java.util.jar.JarOutputStream jos)
throws java.io.IOException
modifyOutputStream in interface ResourceTransformerjava.io.IOException