com.xucia.resourceaccelerate
Class JSShrinkOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.xucia.resourceaccelerate.JSShrinkOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class JSShrinkOutputStream
extends java.io.ByteArrayOutputStream

Author:
Kris Zyp This class applies Dojo ShrinkSafe to an output stream

Constructor Summary
JSShrinkOutputStream(java.io.OutputStream outputStream)
          Must get the output stream to write to
 
Method Summary
 void close()
          Do the compression when the stream closes
 
Methods inherited from class java.io.ByteArrayOutputStream
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

JSShrinkOutputStream

public JSShrinkOutputStream(java.io.OutputStream outputStream)
Must get the output stream to write to

Parameters:
outputStream -
Method Detail

close

public void close()
           throws java.io.IOException
Do the compression when the stream closes

Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.ByteArrayOutputStream
Throws:
java.io.IOException