public interface PrimitiveSink
| Modifier and Type | Method and Description |
|---|---|
PrimitiveSink |
putBoolean(boolean b)
Puts a boolean into this sink.
|
PrimitiveSink |
putByte(byte b)
Puts a byte into this sink.
|
PrimitiveSink |
putBytes(byte[] bytes)
Puts an array of bytes into this sink.
|
PrimitiveSink |
putBytes(byte[] bytes,
int off,
int len)
Puts a chunk of an array of bytes into this sink.
|
PrimitiveSink |
putChar(char c)
Puts a character into this sink.
|
PrimitiveSink |
putDouble(double d)
Puts a double into this sink.
|
PrimitiveSink |
putFloat(float f)
Puts a float into this sink.
|
PrimitiveSink |
putInt(int i)
Puts an int into this sink.
|
PrimitiveSink |
putLong(long l)
Puts a long into this sink.
|
PrimitiveSink |
putShort(short s)
Puts a short into this sink.
|
PrimitiveSink |
putString(java.lang.CharSequence charSequence,
java.nio.charset.Charset charset)
Puts a string into this sink using the given charset.
|
PrimitiveSink |
putUnencodedChars(java.lang.CharSequence charSequence)
Puts each 16-bit code unit from the
CharSequence into this sink. |
PrimitiveSink putByte(byte b)
b - a bytePrimitiveSink putBytes(byte[] bytes)
bytes - a byte arrayPrimitiveSink 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 writejava.lang.IndexOutOfBoundsException - if off < 0 or off + len > bytes.length or
len < 0PrimitiveSink putShort(short s)
s - sPrimitiveSink putInt(int i)
i - iPrimitiveSink putLong(long l)
l - lPrimitiveSink putFloat(float f)
f - fPrimitiveSink putDouble(double d)
d - dPrimitiveSink putBoolean(boolean b)
b - bPrimitiveSink putChar(char c)
c - cPrimitiveSink putUnencodedChars(java.lang.CharSequence charSequence)
CharSequence into this sink.charSequence - charSequencePrimitiveSink putString(java.lang.CharSequence charSequence, java.nio.charset.Charset charset)
charSequence - charSequencecharset - charset