Interface ReproducibleResourceTransformer
- All Superinterfaces:
ResourceTransformer
- All Known Implementing Classes:
AbstractCompatibilityTransformer, ApacheLicenseResourceTransformer, ApacheNoticeResourceTransformer, AppendingTransformer, ComponentsXmlResourceTransformer, DontIncludeResourceTransformer, GroovyResourceTransformer, IncludeResourceTransformer, ManifestResourceTransformer, MicroprofileConfigTransformer, OpenWebBeansPropertiesTransformer, PluginXmlResourceTransformer, PropertiesTransformer, ResourceBundleAppendingTransformer, ServicesResourceTransformer, SisuIndexResourceTransformer, XmlAppendingTransformer
Transform resource ensuring reproducible output: that requires to get the timestamp of
the initial resources to define in a reproducible way the timestamp of the transformed
resource.
- Since:
- 3.2.4
-
Method Summary
Modifier and TypeMethodDescriptionvoidprocessResource(String resource, InputStream is, List<Relocator> relocators, long time) Transform an individual resourceMethods inherited from interface ResourceTransformer
canTransformResource, hasTransformedResource, modifyOutputStream, processResource
-
Method Details
-
processResource
void processResource(String resource, InputStream is, List<Relocator> relocators, long time) throws IOException Transform an individual resource- Parameters:
resource- 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 process- Throws:
IOException- When the IO blows up
-