rewrite-transform 2.0.0.Beta2

org.ocpsoft.rewrite.transform
Class StringTransformer

java.lang.Object
  extended by 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

Constructor Summary
StringTransformer()
           
 
Method Summary
 void transform(HttpServletRewrite event, InputStream inputStream, OutputStream outputStream)
          Transposition the given InputStream and write it to the given OutputStream.
abstract  String transform(HttpServletRewrite event, String input)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringTransformer

public StringTransformer()
Method Detail

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

rewrite-transform 2.0.0.Beta2

Copyright © 2013 OCPsoft. All Rights Reserved.