Class PropertiesTransformer

    • Constructor Detail

      • PropertiesTransformer

        public PropertiesTransformer()
      • PropertiesTransformer

        protected PropertiesTransformer​(java.lang.String resource,
                                        java.lang.String ordinalKey,
                                        int defaultOrdinal,
                                        boolean reversed)
    • Method Detail

      • processResource

        public final void processResource​(java.lang.String resource,
                                          java.io.InputStream is,
                                          java.util.List<Relocator> relocators)
                                   throws java.io.IOException
        Description copied from interface: ResourceTransformer
        Transform an individual resource
        Specified by:
        processResource in interface ResourceTransformer
        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:
        java.io.IOException - When the IO blows up
      • processResource

        public void processResource​(java.lang.String resource,
                                    java.io.InputStream is,
                                    java.util.List<Relocator> relocators,
                                    long time)
                             throws java.io.IOException
        Description copied from interface: ReproducibleResourceTransformer
        Transform an individual resource
        Specified by:
        processResource in interface ReproducibleResourceTransformer
        Parameters:
        resource - The resource name
        is - An input stream for the resource, the implementation should *not* close this stream
        relocators - A list of relocators
        time - the time of the resource to process
        Throws:
        java.io.IOException - When the IO blows up
      • modifyOutputStream

        public void modifyOutputStream​(java.util.jar.JarOutputStream os)
                                throws java.io.IOException
        Specified by:
        modifyOutputStream in interface ResourceTransformer
        Throws:
        java.io.IOException
      • setReverseOrder

        public void setReverseOrder​(boolean reverseOrder)
      • setResource

        public void setResource​(java.lang.String resource)
      • setOrdinalKey

        public void setOrdinalKey​(java.lang.String ordinalKey)
      • setDefaultOrdinal

        public void setDefaultOrdinal​(int defaultOrdinal)
      • setAlreadyMergedKey

        public void setAlreadyMergedKey​(java.lang.String alreadyMergedKey)