| java.lang.Object java.io.Writer org.jasig.portal.utils.SubstitutionWriter
SubstitutionWriter | public class SubstitutionWriter extends Writer (Code) | | A filter presenting a Writer that performs
word substitution (search and replace) on the fly.
7/25/05 - UP-1180 - dmindler@rutgers.edu
Modified to make use of optimized SubstitutionIntegerFilter
author: Peter Kharchenko pkharchenko@interactivebusiness.com" version: $Revision: 36690 $ |
Constructor Summary | |
public | SubstitutionWriter(Writer out, char[] target, char[] substitute, int bufferSize) Creates a new SubstitutionWriter instance. | public | SubstitutionWriter(Writer out, char[] target, char[] substitute) Creates a new SubstitutionWriter instance. |
Method Summary | |
public void | close() | public void | flush() | public static void | main(String[] args) A test self-test method for the class. | public void | write(int i) | public void | write(char[] cbuf, int off, int len) |
SubstitutionWriter | public SubstitutionWriter(Writer out, char[] target, char[] substitute, int bufferSize)(Code) | | Creates a new SubstitutionWriter instance.
Parameters: out - a true Writer value where processed stream should be directed Parameters: target - a byte[] value of a target to be replaced Parameters: substitute - a byte[] value with which the target will be replaced Parameters: bufferSize - a size of the buffer |
SubstitutionWriter | public SubstitutionWriter(Writer out, char[] target, char[] substitute)(Code) | | Creates a new SubstitutionWriter instance.
Parameters: out - a true Writer value where processed stream should be directed Parameters: target - a byte[] value of a target to be replaced Parameters: substitute - a byte[] value with which the target will be replaced |
main | public static void main(String[] args)(Code) | | A test self-test method for the class.
|
|
|