|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectuk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataRecord
public abstract class AbstractCASDataRecord
An abstract class for a Census Area Statistic (CAS) Data Record.
AbstractDataHandler,
Serialized Form| Field Summary | |
|---|---|
protected char[] |
Zone_Code
For storing Census Area Zone Code as a char[] |
| Fields inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord |
|---|
_RecordID |
| Constructor Summary | |
|---|---|
AbstractCASDataRecord()
|
|
| Method Summary | |
|---|---|
protected void |
_Init()
Initialises. |
boolean |
equals(java.lang.Object object)
|
long |
getSizeInBytes()
|
char[] |
getZone_Code()
Returns a copy of this.Zone_Code |
int |
hashCode()
|
protected void |
init(AbstractCASDataRecord aCASDataRecord)
Initialise from aCASDataRecord |
java.lang.String |
toCSVString()
|
java.lang.String |
toCSVStringFields()
|
java.lang.String |
toString()
|
void |
write(java.io.RandomAccessFile aRandomAccessFile)
Calls super.write(RandomAccessFile) then writes out: this.Zone_Code as a sequence of chars
to aRandomAccessFile. |
void |
write(java.io.RandomAccessFile aRandomAccessFile,
long RecordID,
int hashCode,
java.lang.String zoneCode)
Writes this to aRandomAccessFile at the current
position using RecordID as the RecordID, hashCode as hashCode and
zoneCode as zoneCode. |
| Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataRecord |
|---|
_Init, compareTo, get_RecordID, getNumberOfBitsInByte |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
protected char[] Zone_Code
char[]
| Constructor Detail |
|---|
public AbstractCASDataRecord()
| Method Detail |
|---|
protected void init(AbstractCASDataRecord aCASDataRecord)
aCASDataRecord - The AbstractCASDataRecord used to initialise.protected void _Init()
_Init in class AbstractDataRecordpublic java.lang.String toString()
toString in class AbstractDataRecordString description of this.public java.lang.String toCSVString()
toCSVString in class AbstractDataRecordString of the values
of the Fields of this.public java.lang.String toCSVStringFields()
toCSVStringFields in class AbstractDataRecordString of the names
of the Fields of thispublic void write(java.io.RandomAccessFile aRandomAccessFile)
this.Zone_Code as a sequence of chars
write in class AbstractDataRecordaRandomAccessFile - The RandomAccessFile written to.AbstractDataRecord.write(RandomAccessFile)
public void write(java.io.RandomAccessFile aRandomAccessFile,
long RecordID,
int hashCode,
java.lang.String zoneCode)
this to aRandomAccessFile at the current
position using RecordID as the RecordID, hashCode as hashCode and
zoneCode as zoneCode.
aRandomAccessFile - The RandomAccessFile this is written to.RecordID - The RecordID to be written.hashCode - The hashCode to be written.zoneCode - The zoneCode to be written.public boolean equals(java.lang.Object object)
equals in class AbstractDataRecordObject.equals(Object)public int hashCode()
hashCode in class AbstractDataRecordpublic long getSizeInBytes()
getSizeInBytes in class AbstractDataRecordbytes) of this as a long.
This does not account for the private Fields
serialVersionUID.public char[] getZone_Code()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||