uPortal 2.4.1
API Documentation

org.jasig.portal.utils
Class SubstitutionServletOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byorg.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.
 
Method Summary
 void close()
           
 void flush()
           
 void write(int i)
           
 
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
 

Constructor Detail

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 directed
target - a byte[] value of a target to be replaced
substitute - 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 directed
target - a byte[] value of a target to be replaced
substitute - a byte[] value with which the target will be replaced
bufferSize - a buffer size
Method Detail

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

uPortal 2.4.1
API Documentation