Package org.ocpsoft.rewrite.transform
Class StringTransformer
java.lang.Object
org.ocpsoft.rewrite.transform.StringTransformer
- All Implemented Interfaces:
Transformer
Base class for
Transformer implementations that operate on strings. Please note that this classes assumes
UTF8 encoding when building the string representation of the InputStream and when writing the transformed
string to the OutputStream.- Author:
- Christian Kaltepoth
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidtransform(HttpServletRewrite event, InputStream inputStream, OutputStream outputStream) Transposition the givenInputStreamand write it to the givenOutputStream.abstract Stringtransform(HttpServletRewrite event, String input)
-
Constructor Details
-
StringTransformer
public StringTransformer()
-
-
Method Details
-
transform
-
transform
public void transform(HttpServletRewrite event, InputStream inputStream, OutputStream outputStream) throws IOException Description copied from interface:TransformerTransposition the givenInputStreamand write it to the givenOutputStream.- Specified by:
transformin interfaceTransformer- Throws:
IOException
-