|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object
java.io.OutputStream
com.tangosol.io.WrapperOutputStream
public class WrapperOutputStream
This is an OutputStream class that delegates to another OutputStream. Primarily, this is intended as a base class for building specific-purpose OutputStream wrappers.
| Field Summary | |
|---|---|
protected java.io.OutputStream |
m_outThe underlying OutputStream object to use. |
| Constructor Summary | |
|---|---|
WrapperOutputStream()Construct an uninitialized WrapperOutputStream. |
|
WrapperOutputStream(java.io.OutputStream out)Construct a WrapperOutputStream that will output to the specified OutputStream object. |
|
| Method Summary | |
|---|---|
void |
close()Closes this OutputStream and releases any associated system resources. |
protected java.io.OutputStream |
ensureOutputStream()Return the underlying OutputStream. |
void |
flush()Flushes this OutputStream and forces any buffered output bytes to be written. |
java.io.OutputStream |
getOutputStream()Obtain the underlying OutputStream. |
void |
setOutputStream(java.io.OutputStream out)Specify the underlying OutputStream. |
void |
write(byte[] ab)Writes all the bytes in the array ab. |
void |
write(byte[] ab, int of, int cb)Writes cb bytes starting at offset of from the array ab. |
void |
write(int b)Writes the eight low-order bits of the argument b. |
| Field Detail |
|---|
protected java.io.OutputStream m_out
| Constructor Detail |
|---|
public WrapperOutputStream()
public WrapperOutputStream(java.io.OutputStream out)
out - an OutputStream object to write to| Method Detail |
|---|
public java.io.OutputStream getOutputStream()
protected java.io.OutputStream ensureOutputStream()
java.lang.IllegalStateException - if the underlying stream has not been specified.public void setOutputStream(java.io.OutputStream out)
out - the stream to be wrappedjava.lang.IllegalStateException - if the underlying stream has already been specified.
public void write(int b)
throws java.io.IOException
b. The 24 high-order bits of b are ignored.write in interface OutputStreamingwrite in class java.io.OutputStreamb - the byte to write (passed as an integer)java.io.IOException - if an I/O error occurs
public void write(byte[] ab)
throws java.io.IOException
ab.write in interface OutputStreamingwrite in class java.io.OutputStreamab - the byte array to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if ab is null
public void write(byte[] ab,
int of,
int cb)
throws java.io.IOException
cb bytes starting at offset of from the array ab.write in interface OutputStreamingwrite in class java.io.OutputStreamab - the byte array to write fromof - the offset into ab to start writing fromcb - the number of bytes from ab to writejava.io.IOException - if an I/O error occursjava.lang.NullPointerException - if ab is nulljava.lang.IndexOutOfBoundsException - if of is negative, or cb is negative, or of+cb is greater than ab.length
public void flush()
throws java.io.IOException
flush in interface OutputStreamingflush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs
public void close()
throws java.io.IOException
close in interface OutputStreamingclose in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - if an I/O error occurs
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||