fulmine.protocol.specification
Interface FieldReader.IFieldReaderTask

All Known Implementing Classes:
AbstractContainer.ReaderTask, AbstractDynamicContainer.ReaderTask
Enclosing class:
FieldReader

public static interface FieldReader.IFieldReaderTask

A visitor that is invoked for every component spec found during the header parsing of the FieldReader#readIWFFieldSpecs(byte[], int, int, int, int, IFieldReaderTask) and FieldReader#readSWFFieldSpecs(byte[], int, int, int, int, IFieldReaderTask) methods. The reader task should construct or update the appropriate IComponent represented by the component spec and data.

Author:
Ramon Servadei

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.
 

Method Detail

read

void read(IOperationScope scope,
          int fieldId,
          byte[] dataBuffer,
          int dataStart,
          int dataLen)
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.

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

void read(IOperationScope scope,
          String fieldId,
          byte[] dataBuffer,
          int dataStart,
          int dataLen)
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.

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.