Interface ResourceTransformer
-
- All Known Subinterfaces:
ReproducibleResourceTransformer
- All Known Implementing Classes:
ApacheLicenseResourceTransformer
,ApacheNoticeResourceTransformer
,AppendingTransformer
,ComponentsXmlResourceTransformer
,DontIncludeResourceTransformer
,GroovyResourceTransformer
,IncludeResourceTransformer
,ManifestResourceTransformer
,MicroprofileConfigTransformer
,OpenWebBeansPropertiesTransformer
,PluginXmlResourceTransformer
,PropertiesTransformer
,ResourceBundleAppendingTransformer
,ServicesResourceTransformer
,SisuIndexResourceTransformer
,XmlAppendingTransformer
public interface ResourceTransformer
- Author:
- Jason van Zyl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description boolean
canTransformResource(java.lang.String resource)
boolean
hasTransformedResource()
void
modifyOutputStream(java.util.jar.JarOutputStream os)
void
processResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators)
Deprecated.prefer ReproducibleResourceTransformer
-
-
-
Method Detail
-
canTransformResource
boolean canTransformResource(java.lang.String resource)
-
processResource
void processResource(java.lang.String resource, java.io.InputStream is, java.util.List<Relocator> relocators) throws java.io.IOException
Deprecated.prefer ReproducibleResourceTransformerTransform an individual resource- Parameters:
resource
- The resource nameis
- An input stream for the resource, the implementation should *not* close this streamrelocators
- A list of relocators- Throws:
java.io.IOException
- When the IO blows up
-
hasTransformedResource
boolean hasTransformedResource()
-
modifyOutputStream
void modifyOutputStream(java.util.jar.JarOutputStream os) throws java.io.IOException
- Throws:
java.io.IOException
-
-