|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface IDataSink
A data sink is an I/O resource capable of receiving data.
| Method Summary | |
|---|---|
int |
write(byte... bytes)
writes bytes to the data sink |
int |
write(byte b)
writes a byte to the data sink |
int |
write(byte[] bytes,
int offset,
int length)
writes bytes to the data sink |
int |
write(java.nio.ByteBuffer buffer)
writes a byte buffer to the data sink |
long |
write(java.nio.ByteBuffer[] buffers)
writes a byte array to the data sink |
int |
write(double d)
writes a double to the data sink |
int |
write(int i)
writes a int to the data sink |
int |
write(long l)
writes a long to the data sink |
int |
write(short s)
writes a short to the data sink |
int |
write(java.lang.String message)
writes a message |
int |
write(java.lang.String message,
java.lang.String encoding)
write a message |
| Method Detail |
|---|
int write(byte b)
throws java.io.IOException
b - the byte to write
java.io.IOException - If some other I/O error occurs
int write(byte... bytes)
throws java.io.IOException
bytes - the bytes to write
java.io.IOException - If some other I/O error occurs
int write(byte[] bytes,
int offset,
int length)
throws java.io.IOException
bytes - the bytes to writeoffset - The offset of the subarray to be used; must be non-negative and no larger than array.length. The new buffer`s position will be set to this value.length - The length of the subarray to be used; must be non-negative and no larger than array.length - offset. The new buffer`s limit will be set to offset + length.
java.io.IOException - If some other I/O error occurs
int write(java.nio.ByteBuffer buffer)
throws java.io.IOException
buffer - the bytes to write
java.io.IOException - If some other I/O error occurs
long write(java.nio.ByteBuffer[] buffers)
throws java.io.IOException
buffers - the bytes to write
java.io.IOException - If some other I/O error occurs
int write(int i)
throws java.io.IOException
i - the int value to write
java.io.IOException - If some other I/O error occurs
int write(short s)
throws java.io.IOException
s - the short value to write
java.io.IOException - If some other I/O error occurs
int write(long l)
throws java.io.IOException
l - the int value to write
java.io.IOException - If some other I/O error occurs
int write(double d)
throws java.io.IOException
d - the int value to write
java.io.IOException - If some other I/O error occurs
int write(java.lang.String message,
java.lang.String encoding)
throws java.io.IOException
message - the message to writeencoding - the encoding which should be used th encode the chars into byte (e.g. `US-ASCII` or `UTF-8`)
java.io.IOException - If some other I/O error occurs
int write(java.lang.String message)
throws java.io.IOException
message - the message to write
java.io.IOException - If some other I/O error occurs
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||