|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface Encoder
Interface for encoding data.
| Method Summary | |
|---|---|
Encoder |
writeBool(boolean b)
|
Encoder |
writeBytes(byte[] bytes)
|
Encoder |
writeBytes(byte[] bytes,
int off,
int len)
|
Encoder |
writeBytes(ByteBuffer bytes)
Writes out the remaining bytes in ByteBuffer. |
Encoder |
writeDouble(double d)
|
Encoder |
writeFloat(float f)
|
Encoder |
writeInt(int i)
|
Encoder |
writeLong(long l)
|
Encoder |
writeNull()
|
Encoder |
writeString(String s)
|
| Method Detail |
|---|
Encoder writeNull()
throws IOException
IOException
Encoder writeBool(boolean b)
throws IOException
IOException
Encoder writeInt(int i)
throws IOException
IOException
Encoder writeLong(long l)
throws IOException
IOException
Encoder writeFloat(float f)
throws IOException
IOException
Encoder writeDouble(double d)
throws IOException
IOException
Encoder writeString(String s)
throws IOException
IOException
Encoder writeBytes(byte[] bytes)
throws IOException
IOException
Encoder writeBytes(byte[] bytes,
int off,
int len)
throws IOException
IOException
Encoder writeBytes(ByteBuffer bytes)
throws IOException
ByteBuffer.
The given ByteBuffer is untouched after this method returns (i.e. same position and limit).
bytes -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||