|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
org.entityfs.support.io.OutputStreamProxy
public abstract class OutputStreamProxy
This is an abstract proxy implementation for wrapping an OutputStream
in a proxy object. The orthodox way to do the same would be to let the
wrapping class inherit FilterOutputStream
, but that turned out to be
a real performance hog.
Subclasses inherit this class and override methods as needed.
This would really be easier if OutputStream
had been an interface...
InputStreamProxy
Constructor Summary | |
---|---|
protected |
OutputStreamProxy(OutputStream os)
Create an output stream proxy |
Method Summary | |
---|---|
void |
close()
|
void |
flush()
|
protected OutputStream |
getProxied()
Get the proxied stream. |
String |
toString()
|
void |
write(byte[] b)
|
void |
write(byte[] b,
int off,
int len)
|
void |
write(int b)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected OutputStreamProxy(OutputStream os)
os
- The proxied streamMethod Detail |
---|
protected OutputStream getProxied()
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void write(byte[] b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |