|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
public interface OutputDestination
This interface represents an abstraction of any destination for outgoing data.
| Method Summary | |
|---|---|
int |
write(byte[] data,
int offset,
int len)
Write data to this output destination from an array of bytes. |
int |
write(ByteBuffer data)
Write data to this output destination from a byte buffer. |
void |
writeInt(int value)
Write an int value to this output destination. |
| Methods inherited from interface java.io.Closeable |
|---|
close |
| Method Detail |
|---|
int write(byte[] data,
int offset,
int len)
throws Exception
data - the buffer containing the data to write.offset - the position in the buffer where to start reading the data.len - the size in bytes of the data to write.
Exception - if an IO error occurs.
int write(ByteBuffer data)
throws Exception
data - the buffer containing the data to write.
Exception - if an IO error occurs.
void writeInt(int value)
throws Exception
value - the value to write.
Exception - if an IO error occurs.
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||