javazoom.upload.parsing
Class CfuOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.commons.fileupload.ThresholdingOutputStream
          extended byorg.apache.commons.fileupload.DeferredFileOutputStream
              extended byjavazoom.upload.parsing.CfuOutputStream

public class CfuOutputStream
extends org.apache.commons.fileupload.DeferredFileOutputStream

This class extends CFU features and add listeners notification for UploadBean.


Constructor Summary
CfuOutputStream(int threshold, java.io.File outputFile, java.util.Vector listeners, boolean isformfield)
          Constructor.
 
Method Summary
 void write(byte[] b, int off, int len)
          Overridden method to get notified.
 
Methods inherited from class org.apache.commons.fileupload.DeferredFileOutputStream
getData, getFile, getStream, isInMemory, thresholdReached
 
Methods inherited from class org.apache.commons.fileupload.ThresholdingOutputStream
checkThreshold, close, flush, getByteCount, getThreshold, isThresholdExceeded, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CfuOutputStream

public CfuOutputStream(int threshold,
                       java.io.File outputFile,
                       java.util.Vector listeners,
                       boolean isformfield)
Constructor.

Parameters:
threshold -
outputFile -
listeners -
isformfield -
Method Detail

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overridden method to get notified.

Parameters:
b -
off -
len -
Throws:
java.io.IOException