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(QpidByteBuffer buffer) |
public int writeToBuffer(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–2016 The Apache Software Foundation. All rights reserved.