|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| 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 stream| Method Detail |
|---|
protected OutputStream getProxied()
public void close()
throws IOException
close in interface Closeableclose in class OutputStreamIOException
public void flush()
throws IOException
flush in interface Flushableflush in class OutputStreamIOException
public void write(byte[] b)
throws IOException
write in class OutputStreamIOException
public void write(byte[] b,
int off,
int len)
throws IOException
write in class OutputStreamIOException
public void write(int b)
throws IOException
write in class OutputStreamIOExceptionpublic String toString()
toString in class Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||