public abstract class SimpleVariableWidthWriter<V> extends VariableWidthWriter<V>
ValueWriter.Factory<V>, ValueWriter.Registry
Constructor and Description |
---|
SimpleVariableWidthWriter() |
Modifier and Type | Method and Description |
---|---|
protected void |
clearValue() |
protected abstract byte[] |
getByteArray(V value) |
protected int |
getLength() |
protected abstract int |
getOffset() |
protected boolean |
hasValue() |
boolean |
isCacheable() |
void |
setValue(V value) |
protected void |
writeBytes(QpidByteBuffer buf,
int offset,
int length) |
getFourOctetEncodingCode, getSingleOctetEncodingCode, isComplete, writeToBuffer
public void setValue(V value)
setValue
in interface ValueWriter<V>
setValue
in class VariableWidthWriter<V>
protected int getLength()
getLength
in class VariableWidthWriter<V>
protected void writeBytes(QpidByteBuffer buf, int offset, int length)
writeBytes
in class VariableWidthWriter<V>
protected void clearValue()
clearValue
in class VariableWidthWriter<V>
protected boolean hasValue()
hasValue
in class VariableWidthWriter<V>
public boolean isCacheable()
protected abstract byte[] getByteArray(V value)
protected abstract int getOffset()
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.