public class TypedBytesContentWriter extends Object implements TypedBytesCodes
BOOLEAN_TYPE, BYTE_TYPE, BYTEARRAY_TYPE, CHAR_TYPE, DOUBLE_TYPE, FLOAT_TYPE, INT_TYPE, LONG_TYPE, NULL_STRING_TYPE, SHORT_TYPE, STRING_TYPE
Constructor and Description |
---|
TypedBytesContentWriter() |
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
getData() |
void |
writeBoolean(boolean b) |
void |
writeBooleanImpl(boolean b) |
void |
writeByte(byte b) |
void |
writeByteImpl(byte b) |
void |
writeBytes(byte[] bytes) |
void |
writeBytes(byte[] bytes,
int offset,
int length) |
void |
writeBytesImpl(byte[] bytes,
int offset,
int length) |
void |
writeBytesRaw(byte[] bytes,
int offset,
int length) |
void |
writeChar(char c) |
void |
writeCharImpl(char c) |
void |
writeDouble(double v) |
void |
writeDoubleImpl(double v) |
void |
writeFloat(float v) |
void |
writeFloatImpl(float v) |
void |
writeInt(int i) |
void |
writeIntImpl(int i) |
void |
writeLengthPrefixedUTF(String string) |
void |
writeLong(long l) |
void |
writeLongImpl(long l) |
void |
writeNullTerminatedStringImpl(String string) |
void |
writeObject(Object object) |
void |
writeShort(short i) |
void |
writeShortImpl(short i) |
void |
writeString(String string) |
protected void |
writeTypeDiscriminator(byte type) |
protected void writeTypeDiscriminator(byte type)
public void writeBoolean(boolean b)
public void writeBooleanImpl(boolean b)
public void writeByte(byte b)
public void writeByteImpl(byte b)
public void writeShort(short i)
public void writeShortImpl(short i)
public void writeChar(char c)
public void writeCharImpl(char c)
public void writeInt(int i)
public void writeIntImpl(int i)
public void writeLong(long l)
public void writeLongImpl(long l)
public void writeFloat(float v)
public void writeFloatImpl(float v)
public void writeDouble(double v)
public void writeDoubleImpl(double v)
public void writeString(String string)
public void writeNullTerminatedStringImpl(String string)
public void writeBytes(byte[] bytes)
public void writeBytes(byte[] bytes, int offset, int length)
public void writeBytesImpl(byte[] bytes, int offset, int length)
public void writeBytesRaw(byte[] bytes, int offset, int length)
public void writeObject(Object object) throws TypedBytesFormatException
TypedBytesFormatException
public ByteBuffer getData()
public void writeLengthPrefixedUTF(String string) throws TypedBytesFormatException
TypedBytesFormatException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.