|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
com.clarkparsia.modularity.io.UncloseableOutputStream
public class UncloseableOutputStream
Title:
Description:
Copyright: Copyright (c) 2009
Company: Clark & Parsia, LLC.
| Constructor Summary | |
|---|---|
UncloseableOutputStream(java.io.OutputStream stream)
Wraps an output stream with a wrapper that does not allow the underlying stream to be closed. |
|
| Method Summary | |
|---|---|
void |
close()
Captures the close request, and does NOT forward it to the underlying stream. |
void |
flush()
Forwards the call to the underlying stream. |
java.io.OutputStream |
getUnderlyingStream()
Gets the underlying stream. |
void |
write(byte[] b)
Forwards the call to the underlying stream. |
void |
write(byte[] b,
int off,
int len)
Forwards the call to the underlying stream. |
void |
write(int b)
Forwards the call to the underlying stream. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UncloseableOutputStream(java.io.OutputStream stream)
stream - the underlying stream to be protected from closing.| Method Detail |
|---|
public void close()
close in interface java.io.Closeableclose in class java.io.OutputStream
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOException
public void write(int b)
throws java.io.IOException
write in class java.io.OutputStreamjava.io.IOExceptionpublic java.io.OutputStream getUnderlyingStream()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||