planetj.servlet.wrapper
Class FastByteArrayOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream
          extended byplanetj.servlet.wrapper.FastByteArrayOutputStream

public class FastByteArrayOutputStream
extends java.io.ByteArrayOutputStream

Allows us to convert this into a ByteArrayInputStream without copying the buffer. Just make sure you are finished writing first.


Constructor Summary
FastByteArrayOutputStream()
           
 
Method Summary
 java.io.ByteArrayInputStream getInputStream()
          You should be done writing before you call this method.
 
Methods inherited from class java.io.ByteArrayOutputStream
close, reset, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FastByteArrayOutputStream

public FastByteArrayOutputStream()
Method Detail

getInputStream

public java.io.ByteArrayInputStream getInputStream()
You should be done writing before you call this method.