Class HeaderData

java.lang.Object
  |
  +--HeaderData

public class HeaderData
extends java.lang.Object

Storage structure for the header data describing the contents of a file.


Constructor Summary
HeaderData()
          Creates and initializes the header object
 
Method Summary
 void display()
          Used for testing only.
 int getC4321()
          Gets the constant value
 int getFileID()
          Gets the file ID
 java.lang.String getHeaderID()
          Gets the header ID
 int getPassNo()
          Gets the image pass number
 int getRecCnt()
          Gets the total number of records contained in the file
 int getRecLen()
          Gets the length of one record in bytes
 int getStructVer()
          Gets the structure version of the file type
 java.lang.String getTapeDate()
          Gets the tape date
 java.lang.String getTapeTime()
          Gets the tape time
 void setHeaderValues(java.lang.String id, int c, int pass, int file, int len, int ver, int cnt, java.lang.String date, java.lang.String time)
          Set the fields of the HdrData object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeaderData

public HeaderData()
Creates and initializes the header object
Method Detail

setHeaderValues

public void setHeaderValues(java.lang.String id,
                            int c,
                            int pass,
                            int file,
                            int len,
                            int ver,
                            int cnt,
                            java.lang.String date,
                            java.lang.String time)
Set the fields of the HdrData object. Note: Currently the tape_date and tape_time fields are not being set due to the inability to read the character data from the files.
Parameters:
id - the header id
c - a constant value
pass - the image pass number
file - the file ID
len - the length of a single record
ver - the structure version of the file type
cnt - the number of records in the file
date - the tape date
time - the tape time

display

public void display()
Used for testing only. Displays the fields of the HdrData object to System.out

getHeaderID

public java.lang.String getHeaderID()
Gets the header ID
Returns:
the header ID

getC4321

public int getC4321()
Gets the constant value
Returns:
the constant value

getPassNo

public int getPassNo()
Gets the image pass number
Returns:
the image pass number

getFileID

public int getFileID()
Gets the file ID
Returns:
the file ID

getRecLen

public int getRecLen()
Gets the length of one record in bytes
Returns:
the length of one record

getStructVer

public int getStructVer()
Gets the structure version of the file type
Returns:
the structure version

getRecCnt

public int getRecCnt()
Gets the total number of records contained in the file
Returns:
the number of records

getTapeDate

public java.lang.String getTapeDate()
Gets the tape date
Returns:
the tape date

getTapeTime

public java.lang.String getTapeTime()
Gets the tape time
Returns:
the tape time