com.infoengine.soap.util.saaj
Class OverFlowOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended bycom.infoengine.soap.util.saaj.OverFlowOutputStream

public class OverFlowOutputStream
extends OutputStream


Field Summary
private  int bytesWritten
           
private  boolean closed
           
private static int DEFAULT_THRESHOLD
           
private static int INITIAL_BUFFSIZE
           
private  File overflow
           
private  OutputStream sink
           
private  int threshhold
           
 
Constructor Summary
OverFlowOutputStream()
           
 
Method Summary
 void cleanup()
           
 void close()
           
 void flush()
           
protected  long getContentLength()
           
private  void startOverflow()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
(package private)  void writeTo(OutputStream os)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INITIAL_BUFFSIZE

private static final int INITIAL_BUFFSIZE
See Also:
Constant Field Values

DEFAULT_THRESHOLD

private static final int DEFAULT_THRESHOLD
See Also:
Constant Field Values

threshhold

private int threshhold

bytesWritten

private int bytesWritten

sink

private OutputStream sink

overflow

private File overflow

closed

private boolean closed
Constructor Detail

OverFlowOutputStream

public OverFlowOutputStream()
Method Detail

write

public void write(int b)
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

getContentLength

protected long getContentLength()

startOverflow

private void startOverflow()
                    throws IOException
Throws:
IOException

writeTo

void writeTo(OutputStream os)
       throws IOException
Throws:
IOException

cleanup

public void cleanup()