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 Details

    • canTransformResource

      boolean canTransformResource(String resource)
    • processResource

      void processResource(String resource, InputStream is, List<Relocator> relocators) throws IOException
      Deprecated.
      prefer ReproducibleResourceTransformer
      Transform an individual resource
      Parameters:
      resource - The resource name
      is - An input stream for the resource, the implementation should *not* close this stream
      relocators - A list of relocators
      Throws:
      IOException - When the IO blows up
    • hasTransformedResource

      boolean hasTransformedResource()
    • modifyOutputStream

      void modifyOutputStream(JarOutputStream os) throws IOException
      Throws:
      IOException