public abstract class FixedOneWriter<T> extends Object implements ValueWriter<T>
ValueWriter.Factory<V>, ValueWriter.Registry| Modifier and Type | Field and Description |
|---|---|
protected byte |
_value |
protected int |
_written |
| Constructor and Description |
|---|
FixedOneWriter() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract byte |
convertToByte(T value) |
protected abstract byte |
getFormatCode() |
boolean |
isCacheable() |
boolean |
isComplete() |
void |
setValue(T value) |
int |
writeToBuffer(org.apache.qpid.bytebuffer.QpidByteBuffer buffer) |
public int writeToBuffer(org.apache.qpid.bytebuffer.QpidByteBuffer buffer)
writeToBuffer in interface ValueWriter<T>protected abstract byte getFormatCode()
public boolean isComplete()
isComplete in interface ValueWriter<T>public boolean isCacheable()
isCacheable in interface ValueWriter<T>public void setValue(T value)
setValue in interface ValueWriter<T>protected abstract byte convertToByte(T value)
Copyright © 2006–2017 The Apache Software Foundation. All rights reserved.