iso8211 0-1-0 by Weft

uk.co.weft.iso8211
Class Leader

java.lang.Object
  |
  +--uk.co.weft.iso8211.Leader

public class Leader
extends java.lang.Object

The leader of an ISO 8211 record. Based heavily on Leader in iso8211.py

Version:
$Revision: 1.2 $ This revision: $Author: simon $
  $Log: Leader.java,v $
  Revision 1.2  2002/11/02 00:09:16  simon
  Promising, but still not there. Problems include not correctly finding
  the start of the next record.

  Revision 1.1.1.1  2002/10/29 11:27:33  simon
  More or less parses


  
Author:
Simon Brooke (simon@jasmine.org.uk)

Field Summary
protected  int appIndicator
          the application indicator (DDR only) TODO: should this be boolean?
protected  int baseAddress
          offset (?) to the start of fields
protected  int extendedCharSet
          the extended character set indicator (DDR only) TODO: should this be boolean?
protected  int fieldControlLength
          the field control length (?) (DDR only)
protected  int fieldLengthSz
          The size of the length of each field
protected  int fieldPositionSz
          The size of the position of each field
protected  int fieldTagSz
          The size of the tag of each field
protected  int id
          my leader ID -- effectively the record type.
protected  int inlineCodeExt
          the inline code extension indicator.
protected  int interchangeLevel
          the 'interchange level' (DDR only)
protected  int length
          the length of the record in which I occur
protected  long position
          the position at which I was found in the input stream
protected  int version
          the ISO8211 version `number' (DDR only)
 
Constructor Summary
Leader(ISO8211InputStream in, Record record, Record ddr, boolean debug)
          create and return a Leader object by reading from the current point in this stream
 
Method Summary
protected  void interpretHeader()
          assuming I'm not a DDR record, interpret my raw header
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

position

protected long position
the position at which I was found in the input stream

length

protected int length
the length of the record in which I occur

id

protected int id
my leader ID -- effectively the record type.

baseAddress

protected int baseAddress
offset (?) to the start of fields

fieldLengthSz

protected int fieldLengthSz
The size of the length of each field

fieldPositionSz

protected int fieldPositionSz
The size of the position of each field

fieldTagSz

protected int fieldTagSz
The size of the tag of each field

interchangeLevel

protected int interchangeLevel
the 'interchange level' (DDR only)

inlineCodeExt

protected int inlineCodeExt
the inline code extension indicator. (DDR only) TODO: should this be boolean?

version

protected int version
the ISO8211 version `number' (DDR only)

appIndicator

protected int appIndicator
the application indicator (DDR only) TODO: should this be boolean?

fieldControlLength

protected int fieldControlLength
the field control length (?) (DDR only)

extendedCharSet

protected int extendedCharSet
the extended character set indicator (DDR only) TODO: should this be boolean?
Constructor Detail

Leader

public Leader(ISO8211InputStream in,
              Record record,
              Record ddr,
              boolean debug)
       throws FormatException
create and return a Leader object by reading from the current point in this stream
Parameters:
in - the stream to read me from
record - the record of which I form part
ddr - the data description record for this file
debug - whether or not I'm in debug mode
Method Detail

interpretHeader

protected void interpretHeader()
                        throws java.lang.Exception
assuming I'm not a DDR record, interpret my raw header

iso8211 0-1-0 by Weft