|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.Writer
org.jasig.portal.utils.SubstitutionWriter
A filter presenting a Writer
that performs
word substitution (search&replace) on the fly.
Constructor Summary | |
SubstitutionWriter(java.io.Writer out,
char[] target,
char[] substitute)
Creates a new SubstitutionWriter instance. |
|
SubstitutionWriter(java.io.Writer out,
char[] target,
char[] substitute,
int bufferSize)
Creates a new SubstitutionWriter instance. |
Method Summary | |
void |
close()
|
void |
flush()
|
static void |
main(java.lang.String[] args)
A test self-test method for the class. |
void |
write(char[] cbuf,
int off,
int len)
|
void |
write(int i)
|
Methods inherited from class java.io.Writer |
write, write, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SubstitutionWriter(java.io.Writer out, char[] target, char[] substitute, int bufferSize)
SubstitutionWriter
instance.
out
- a true Writer
value where processed stream should be directedtarget
- a byte[]
value of a target to be replacedsubstitute
- a byte[]
value with which the target will be replacedbufferSize
- a size of the bufferpublic SubstitutionWriter(java.io.Writer out, char[] target, char[] substitute)
SubstitutionWriter
instance.
out
- a true Writer
value where processed stream should be directedtarget
- a byte[]
value of a target to be replacedsubstitute
- a byte[]
value with which the target will be replacedMethod Detail |
public void write(int i) throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public void write(char[] cbuf, int off, int len) throws java.io.IOException
java.io.IOException
public static void main(java.lang.String[] args)
|
uPortal 2.4.1 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |