org.sourcejammer.util
Class SendBytesOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--org.sourcejammer.util.SendBytesOutputStream

public class SendBytesOutputStream
extends java.io.OutputStream

Title: $FileName: SendBytesOutputStream.java$

Version:
$VerNum: 2$ $KeyWordsOff: $

Output stream that outputs to a SendBytes object.
Author:
$AuthorName: Rob MacGrogan$

Field Summary
private  SendBytesDataSource sink
           
private  java.io.ByteArrayOutputStream stm
           
 
Constructor Summary
SendBytesOutputStream(SendBytesDataSource sb)
           
 
Method Summary
 void close()
           
protected  void finalize()
           
 void flush()
           
 void write(byte[] arg0)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sink

private SendBytesDataSource sink

stm

private java.io.ByteArrayOutputStream stm
Constructor Detail

SendBytesOutputStream

public SendBytesOutputStream(SendBytesDataSource sb)
Method Detail

close

public void close()
           throws java.io.IOException
Overrides:
close in class java.io.OutputStream
java.io.IOException
See Also:
OutputStream.close()

write

public void write(int b)
           throws java.io.IOException
Specified by:
write in class java.io.OutputStream
java.io.IOException
See Also:
OutputStream.write(int)

finalize

protected void finalize()
                 throws java.lang.Throwable
Overrides:
finalize in class java.lang.Object
java.lang.Throwable
See Also:
Object.finalize()

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
java.io.IOException
See Also:
OutputStream.write(byte[], int, int)

flush

public void flush()
           throws java.io.IOException
Overrides:
flush in class java.io.OutputStream
java.io.IOException
See Also:
OutputStream.flush()

write

public void write(byte[] arg0)
           throws java.io.IOException
Overrides:
write in class java.io.OutputStream
java.io.IOException
See Also:
OutputStream.write(byte[])


Copyright 2003 Soucejammer project.