public class SymbolWriter extends VariableWidthWriter<Symbol>
ValueWriter.Factory<V>, ValueWriter.Registry
Modifier and Type | Field and Description |
---|---|
static byte |
LARGE_ENCODING_CODE |
static byte |
SMALL_ENCODING_CODE |
Constructor and Description |
---|
SymbolWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearValue() |
protected byte |
getFourOctetEncodingCode() |
protected int |
getLength() |
protected byte |
getSingleOctetEncodingCode() |
protected boolean |
hasValue() |
boolean |
isCacheable() |
static void |
register(ValueWriter.Registry registry) |
void |
setValue(Symbol value) |
protected void |
writeBytes(QpidByteBuffer buf,
int offset,
int length) |
isComplete, writeToBuffer
public static final byte LARGE_ENCODING_CODE
public static final byte SMALL_ENCODING_CODE
protected byte getFourOctetEncodingCode()
getFourOctetEncodingCode
in class VariableWidthWriter<Symbol>
protected byte getSingleOctetEncodingCode()
getSingleOctetEncodingCode
in class VariableWidthWriter<Symbol>
public void setValue(Symbol value)
setValue
in interface ValueWriter<Symbol>
setValue
in class VariableWidthWriter<Symbol>
public boolean isCacheable()
protected void clearValue()
clearValue
in class VariableWidthWriter<Symbol>
protected boolean hasValue()
hasValue
in class VariableWidthWriter<Symbol>
protected int getLength()
getLength
in class VariableWidthWriter<Symbol>
protected void writeBytes(QpidByteBuffer buf, int offset, int length)
writeBytes
in class VariableWidthWriter<Symbol>
public static void register(ValueWriter.Registry registry)
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.