|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Beta public interface Sink
An object which can receive a stream of primitive values.
Method Summary | |
---|---|
Sink |
putBoolean(boolean b)
Puts a boolean into this sink. |
Sink |
putByte(byte b)
Puts a byte into this sink. |
Sink |
putBytes(byte[] bytes)
Puts an array of bytes into this sink. |
Sink |
putBytes(byte[] bytes,
int off,
int len)
Puts a chunk of an array of bytes into this sink. |
Sink |
putChar(char c)
Puts a character into this sink. |
Sink |
putDouble(double d)
Puts a double into this sink. |
Sink |
putFloat(float f)
Puts a float into this sink. |
Sink |
putInt(int i)
Puts an int into this sink. |
Sink |
putLong(long l)
Puts a long into this sink. |
Sink |
putShort(short s)
Puts a short into this sink. |
Sink |
putString(CharSequence charSequence)
Puts a string into this sink. |
Sink |
putString(CharSequence charSequence,
Charset charset)
Puts a string into this sink using the given charset. |
Method Detail |
---|
Sink putByte(byte b)
b
- a byte
Sink putBytes(byte[] bytes)
bytes
- a byte array
Sink putBytes(byte[] bytes, int off, int len)
bytes[off]
is the first byte written,
bytes[off + len - 1]
is the last.
bytes
- a byte arrayoff
- the start offset in the arraylen
- the number of bytes to write
IndexOutOfBoundsException
- if off < 0
or off + len > bytes.length
or
len < 0
Sink putShort(short s)
Sink putInt(int i)
Sink putLong(long l)
Sink putFloat(float f)
Sink putDouble(double d)
Sink putBoolean(boolean b)
Sink putChar(char c)
Sink putString(CharSequence charSequence)
Sink putString(CharSequence charSequence, Charset charset)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |