fulmine.model.container
Class AbstractContainer.ReaderTask
java.lang.Object
fulmine.model.container.AbstractContainer.ReaderTask
- All Implemented Interfaces:
- FieldReader.IFieldReaderTask
- Direct Known Subclasses:
- AbstractDynamicContainer.ReaderTask
- Enclosing class:
- AbstractContainer
protected class AbstractContainer.ReaderTask
- extends Object
- implements FieldReader.IFieldReaderTask
The reader task executed by the FieldReader
when reading messages
Method Summary |
void |
read(IOperationScope scope,
int fieldId,
byte[] dataBuffer,
int dataStart,
int dataLen)
Handle reading the integer wire format component identified by
component id. |
void |
read(IOperationScope scope,
String fieldId,
byte[] dataBuffer,
int dataStart,
int dataLen)
Handle reading the string wire format component identified by
component id. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractContainer.ReaderTask
protected AbstractContainer.ReaderTask()
read
public void read(IOperationScope scope,
int fieldId,
byte[] dataBuffer,
int dataStart,
int dataLen)
- Description copied from interface:
FieldReader.IFieldReaderTask
- Handle reading the integer wire format component identified by
component id. The data for the component is located in the dataBuffer
from dataStart. The length of the data is given by dataLen. The type
of data to read from the dataBuffer is dependent on the component.
- Specified by:
read
in interface FieldReader.IFieldReaderTask
- Parameters:
scope
- the scope of the read state operationfieldId
- the integer identity of the component.dataBuffer
- the buffer holding the data for the componentdataStart
- the position in the buffer where the data startsdataLen
- the number of bytes for the data
read
public void read(IOperationScope scope,
String fieldId,
byte[] dataBuffer,
int dataStart,
int dataLen)
- Description copied from interface:
FieldReader.IFieldReaderTask
- Handle reading the string wire format component identified by
component id. The data for the component is located in the dataBuffer
from dataStart. The length of the data is given by dataLen. The type
of data to read from the dataBuffer is dependent on the component.
- Specified by:
read
in interface FieldReader.IFieldReaderTask
- Parameters:
scope
- the scope of the read state operationfieldId
- the string identity of the component.dataBuffer
- the buffer holding the data for the componentdataStart
- the position in the buffer where the data startsdataLen
- the number of bytes for the data
Copyright © 2007-2009. All Rights Reserved.