|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-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_out The 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 toMethod 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 OutputStreaming
write
in class java.io.OutputStream
b
- the byte to write (passed as an integer)java.io.IOException
- if an I/O error occurspublic void write(byte[] ab) throws java.io.IOException
ab
.write
in interface OutputStreaming
write
in class java.io.OutputStream
ab
- 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 OutputStreaming
write
in class java.io.OutputStream
ab
- 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 null
java.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 OutputStreaming
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurspublic void close() throws java.io.IOException
close
in interface OutputStreaming
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurs
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |