Class StringPropertyRewriter

  • All Implemented Interfaces:
    StreamRewriter

    public class StringPropertyRewriter
    extends Object
    implements StreamRewriter
    Rewrite the incoming stream using the string replacer. The rewriter need to load the full content of the stream in memory twice.
    Author:
    mikehummel
    • Method Detail

      • rewriteContent

        public InputStream rewriteContent​(String name,
                                          InputStream in)
        Description copied from interface: StreamRewriter
        Load the incoming stream and return a new stream for rewritten content. The rewriter can consume the incoming stream fully until EOF.
        Specified by:
        rewriteContent in interface StreamRewriter
        Parameters:
        name - name of the file
        in - Incoming content
        Returns:
        Replacement stream e.g the incoming stream