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
Modifier and TypeMethodDescriptionboolean
canTransformResource
(String resource) boolean
void
void
processResource
(String resource, InputStream is, List<Relocator> relocators) Deprecated.prefer ReproducibleResourceTransformer
-
Method Details
-
canTransformResource
-
processResource
void processResource(String resource, InputStream is, List<Relocator> relocators) throws 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:
IOException
- When the IO blows up
-
hasTransformedResource
boolean hasTransformedResource() -
modifyOutputStream
- Throws:
IOException
-