public abstract class AbstractSourceType extends java.lang.Object implements SourceType
| Modifier and Type | Field and Description |
|---|---|
protected 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(IoBuffer slice,
Variant value)
Render the value itself to the buffer slice
|
void |
render(IoBuffer buffer,
int offset,
DataItemValue value) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitequals, hashCodeprotected static final int COMMON_HEADER
public int getLength()
SourceTypegetLength in interface SourceTypepublic abstract void putValue(IoBuffer slice,
Variant value)
slice - the buffer slicevalue - the value, or null if "nothing" has to be encodedpublic void render(IoBuffer buffer,
int offset,
DataItemValue value)
render in interface SourceType
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0