fulmine.model.container
Class AbstractContainer.ReaderTask

java.lang.Object
  extended by 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


Constructor Summary
protected AbstractContainer.ReaderTask()
           
 
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
 

Constructor Detail

AbstractContainer.ReaderTask

protected AbstractContainer.ReaderTask()
Method Detail

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 operation
fieldId - the integer identity of the component.
dataBuffer - the buffer holding the data for the component
dataStart - the position in the buffer where the data starts
dataLen - 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 operation
fieldId - the string identity of the component.
dataBuffer - the buffer holding the data for the component
dataStart - the position in the buffer where the data starts
dataLen - the number of bytes for the data


Copyright © 2007-2009. All Rights Reserved.