public abstract class VariableWidthWriter<V> extends Object implements ValueWriter<V>
ValueWriter.Factory<V>, ValueWriter.Registry
Constructor and Description |
---|
VariableWidthWriter() |
Modifier and Type | Method and Description |
---|---|
protected abstract void |
clearValue() |
protected abstract byte |
getFourOctetEncodingCode() |
protected abstract int |
getLength() |
protected abstract byte |
getSingleOctetEncodingCode() |
protected abstract boolean |
hasValue() |
boolean |
isComplete() |
void |
setValue(V value) |
protected abstract void |
writeBytes(QpidByteBuffer buf,
int offset,
int length) |
int |
writeToBuffer(QpidByteBuffer buffer) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isCacheable
public int writeToBuffer(QpidByteBuffer buffer)
writeToBuffer
in interface ValueWriter<V>
protected abstract void clearValue()
protected abstract boolean hasValue()
protected abstract byte getFourOctetEncodingCode()
protected abstract byte getSingleOctetEncodingCode()
public void setValue(V value)
setValue
in interface ValueWriter<V>
protected abstract int getLength()
protected abstract void writeBytes(QpidByteBuffer buf, int offset, int length)
public boolean isComplete()
isComplete
in interface ValueWriter<V>
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.