public abstract class AbstractSourceType extends Object implements SourceType
Modifier and Type | Field and Description |
---|---|
static int |
COMMON_HEADER |
Constructor and Description |
---|
AbstractSourceType(int dataLength) |
Modifier and Type | Method and Description |
---|---|
int |
getLength()
Get the full length required in the buffer
|
abstract void |
putValue(org.apache.mina.core.buffer.IoBuffer slice,
Variant value)
Render the value itself to the buffer slice
|
void |
render(org.apache.mina.core.buffer.IoBuffer buffer,
int offset,
DataItemValue value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, getValue, hashCode
public static final int COMMON_HEADER
public int getLength()
SourceType
getLength
in interface SourceType
public abstract void putValue(org.apache.mina.core.buffer.IoBuffer slice, Variant value)
slice
- the buffer slicevalue
- the value, or null
if "nothing" has to be encodedpublic void render(org.apache.mina.core.buffer.IoBuffer buffer, int offset, DataItemValue value)
render
in interface SourceType