org.ocpsoft.rewrite.transform
Class StringTransformer
java.lang.Object
org.ocpsoft.rewrite.transform.StringTransformer
- All Implemented Interfaces:
- Transformer
public abstract class StringTransformer
- extends Object
- implements 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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringTransformer
public StringTransformer()
transform
public abstract String transform(HttpServletRewrite event,
String input)
transform
public void transform(HttpServletRewrite event,
InputStream inputStream,
OutputStream outputStream)
throws IOException
- Description copied from interface:
Transformer
- Transposition the given
InputStream and write it to the given OutputStream.
- Specified by:
transform in interface Transformer
- Throws:
IOException
Copyright © 2013 OCPsoft. All Rights Reserved.