|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-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.util.NullImplementation.NullOutputStream
public static class NullImplementation.NullOutputStream
An OutputStream that does basically nothing. Note that multiple instances are required because the API dictates that the close method must cause further invocations to all other methods to throw an IOException.
Method Summary | |
---|---|
void |
close() Closes this OutputStream and releases any associated system resources. |
void |
flush() Flushes this OutputStream and forces any buffered output bytes to be written. |
int |
size() |
void |
write(byte[] b) Writes all the bytes in the array ab . |
void |
write(byte[] b, int off, int len) 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 . |
void |
writeBoolean(boolean v) |
void |
writeByte(int v) |
void |
writeBytes(String s) |
void |
writeChar(int v) |
void |
writeChars(String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(String s) |
Method Detail |
---|
public void write(int b) throws IOException
OutputStreaming
b
. The 24 high-order bits of b
are ignored.write
in interface OutputStreaming
write
in interface DataOutput
write
in class OutputStream
b
- the byte to write (passed as an integer)IOException
- if an I/O error occurspublic void write(byte[] b) throws IOException
OutputStreaming
ab
.write
in interface OutputStreaming
write
in interface DataOutput
write
in class OutputStream
b
- the byte array to writeIOException
- if an I/O error occurspublic void write(byte[] b, int off, int len) throws IOException
OutputStreaming
cb
bytes starting at offset of
from the array ab
.write
in interface OutputStreaming
write
in interface DataOutput
write
in class OutputStream
b
- the byte array to write fromoff
- the offset into ab
to start writing fromlen
- the number of bytes from ab
to writeIOException
- if an I/O error occurspublic void flush() throws IOException
OutputStreaming
flush
in interface OutputStreaming
flush
in interface Flushable
flush
in class OutputStream
IOException
- if an I/O error occurspublic void close() throws IOException
OutputStreaming
close
in interface OutputStreaming
close
in interface Closeable
close
in class OutputStream
IOException
- if an I/O error occurspublic int size()
public void writeDouble(double v) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeFloat(float v) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeByte(int v) throws IOException
writeByte
in interface DataOutput
IOException
public void writeChar(int v) throws IOException
writeChar
in interface DataOutput
IOException
public void writeInt(int v) throws IOException
writeInt
in interface DataOutput
IOException
public void writeShort(int v) throws IOException
writeShort
in interface DataOutput
IOException
public void writeLong(long v) throws IOException
writeLong
in interface DataOutput
IOException
public void writeBoolean(boolean v) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeBytes(String s) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChars(String s) throws IOException
writeChars
in interface DataOutput
IOException
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException
|
Oracle® Coherence Java API Reference Release 3.6.0.0 E15725-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |