org.barracudamvc.plankton.io
Class BetterPipedOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by javax.servlet.ServletOutputStream
          extended by org.barracudamvc.plankton.io.BetterPipedOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class BetterPipedOutputStream
extends javax.servlet.ServletOutputStream

Since:
saw_032304_1
Author:
shawnw@atmreports.com

Field Summary
protected  boolean closed
           
protected static org.apache.log4j.Logger logger
           
protected  BetterPipedInputStream sink
           
 
Constructor Summary
BetterPipedOutputStream()
           
BetterPipedOutputStream(BetterPipedInputStream snk)
           
 
Method Summary
 void close()
           
 void connect(BetterPipedInputStream snk)
           
 void flush()
           
 void write(byte[] bbuf, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final org.apache.log4j.Logger logger

sink

protected BetterPipedInputStream sink

closed

protected boolean closed
Constructor Detail

BetterPipedOutputStream

public BetterPipedOutputStream(BetterPipedInputStream snk)
                        throws IOException
Throws:
IOException

BetterPipedOutputStream

public BetterPipedOutputStream()
Method Detail

connect

public void connect(BetterPipedInputStream snk)
             throws IOException
Throws:
IOException

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

public void write(byte[] bbuf,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class OutputStream
Throws:
IOException

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream
Throws:
IOException


Copyright © 2006 BarracudaMVC.org All Rights Reserved.