Package de.mhus.lib.core.io
Interface StreamRewriter
-
- All Known Implementing Classes:
StringPropertyRewriter,UserFieldValuesRewriter
public interface StreamRewriter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InputStreamrewriteContent(String file, InputStream in)Load the incoming stream and return a new stream for rewritten content.
-
-
-
Method Detail
-
rewriteContent
InputStream rewriteContent(String file, InputStream in) throws Exception
Load the incoming stream and return a new stream for rewritten content. The rewriter can consume the incoming stream fully until EOF.- Parameters:
file- name of the filein- Incoming content- Returns:
- Replacement stream e.g the incoming stream
- Throws:
Exception
-
-