org.jasig.portal.utils
Class SubstitutionServletOutputStream
java.lang.Object
java.io.OutputStream
javax.servlet.ServletOutputStream
org.jasig.portal.utils.SubstitutionServletOutputStream
- public class SubstitutionServletOutputStream
- extends javax.servlet.ServletOutputStream
A filter presenting a ServletOutputStream
that performs
word substitution (search&replace) on the fly.
- Version:
- $Revision: 1.5 $
- Author:
- Peter Kharchenko
Constructor Summary |
SubstitutionServletOutputStream(javax.servlet.ServletOutputStream out,
byte[] target,
byte[] substitute)
Creates a new SubstitutionServletOutputStream instance. |
SubstitutionServletOutputStream(javax.servlet.ServletOutputStream out,
byte[] target,
byte[] substitute,
int bufferSize)
Creates a new SubstitutionServletOutputStream instance. |
Methods inherited from class javax.servlet.ServletOutputStream |
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println |
Methods inherited from class java.io.OutputStream |
write, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SubstitutionServletOutputStream
public SubstitutionServletOutputStream(javax.servlet.ServletOutputStream out,
byte[] target,
byte[] substitute)
- Creates a new
SubstitutionServletOutputStream
instance.
- Parameters:
out
- a true ServletOutputStream
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 replaced
SubstitutionServletOutputStream
public SubstitutionServletOutputStream(javax.servlet.ServletOutputStream out,
byte[] target,
byte[] substitute,
int bufferSize)
- Creates a new
SubstitutionServletOutputStream
instance.
- Parameters:
out
- a true ServletOutputStream
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 buffer size
write
public void write(int i)
throws java.io.IOException
- Throws:
java.io.IOException
flush
public void flush()
throws java.io.IOException
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException