|
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.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(java.lang.String s) |
void |
writeChar(int v) |
void |
writeChars(java.lang.String s) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeShort(int v) |
void |
writeUTF(java.lang.String s) |
Method Detail |
---|
public void write(int b) throws java.io.IOException
OutputStreaming
b
. The 24 high-order bits of b
are ignored.write
in interface OutputStreaming
write
in interface java.io.DataOutput
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[] b) throws java.io.IOException
OutputStreaming
ab
.write
in interface OutputStreaming
write
in interface java.io.DataOutput
write
in class java.io.OutputStream
b
- the byte array to writejava.io.IOException
- if an I/O error occurspublic void write(byte[] b, int off, int len) throws java.io.IOException
OutputStreaming
cb
bytes starting at offset of
from the array ab
.write
in interface OutputStreaming
write
in interface java.io.DataOutput
write
in class java.io.OutputStream
b
- the byte array to write fromoff
- the offset into ab
to start writing fromlen
- the number of bytes from ab
to writejava.io.IOException
- if an I/O error occurspublic void flush() throws java.io.IOException
OutputStreaming
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
OutputStreaming
close
in interface OutputStreaming
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
- if an I/O error occurspublic int size()
public void writeDouble(double v) throws java.io.IOException
writeDouble
in interface java.io.DataOutput
java.io.IOException
public void writeFloat(float v) throws java.io.IOException
writeFloat
in interface java.io.DataOutput
java.io.IOException
public void writeByte(int v) throws java.io.IOException
writeByte
in interface java.io.DataOutput
java.io.IOException
public void writeChar(int v) throws java.io.IOException
writeChar
in interface java.io.DataOutput
java.io.IOException
public void writeInt(int v) throws java.io.IOException
writeInt
in interface java.io.DataOutput
java.io.IOException
public void writeShort(int v) throws java.io.IOException
writeShort
in interface java.io.DataOutput
java.io.IOException
public void writeLong(long v) throws java.io.IOException
writeLong
in interface java.io.DataOutput
java.io.IOException
public void writeBoolean(boolean v) throws java.io.IOException
writeBoolean
in interface java.io.DataOutput
java.io.IOException
public void writeBytes(java.lang.String s) throws java.io.IOException
writeBytes
in interface java.io.DataOutput
java.io.IOException
public void writeChars(java.lang.String s) throws java.io.IOException
writeChars
in interface java.io.DataOutput
java.io.IOException
public void writeUTF(java.lang.String s) throws java.io.IOException
writeUTF
in interface java.io.DataOutput
java.io.IOException
|
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 |