uk.ac.leeds.ccg.andyt.projects.moses.io
Class ToyModelHSARDataHandler
java.lang.Object
uk.ac.leeds.ccg.andyt.projects.moses.utilities.AbstractLog
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractDataHandler
uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler
uk.ac.leeds.ccg.andyt.projects.moses.io.ToyModelHSARDataHandler
- All Implemented Interfaces:
- java.io.Serializable
public class ToyModelHSARDataHandler
- extends AbstractCASDataHandler
A specialist handler for accessing CASKS002Records and information about the
collection.
- See Also:
- Serialized Form
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.AbstractCASDataHandler |
get_LookUpMSOAfromOAHashMap, getCAS001DataHandler, getCAS003DataHandler, getDataRecord, getDataRecord, getLADCodes_TreeSet, getMSOACodes_HashSet, getMSOACodes_HashSet, getOACodes_HashSet, getOACodes_HashSet, getOACodes_TreeSet, getRecordIDZoneCode_HashMap, getRecordIDZoneCodeHashMap, getZoneCodeRecordID_HashMap, parseLine, printOAMSOACodes, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
_ZoneCodeToRecordIDStartEndLookup
public java.util.HashMap _ZoneCodeToRecordIDStartEndLookup
- A reference to a FileOutputStream for writing data
ToyModelHSARDataHandler
public ToyModelHSARDataHandler()
- Creates a new instance of ToyModelDataHandler
ToyModelHSARDataHandler
public ToyModelHSARDataHandler(java.io.File _File)
throws java.io.IOException
- Creates a new ToyModelDataHandler for Records loaded from _File.
- Parameters:
_File
- Formatted File of ToyModelDataRecords
- Throws:
java.io.IOException
main
public static void main(java.lang.String[] args)
- Parameters:
args
- the command line arguments
format
public void format(java.lang.String directory)
throws java.io.IOException
- Highest level controller for processing runs
- Throws:
java.io.IOException
format
public void format(java.io.File a_ToyModelHSARDataRecordASCIIFile)
throws java.io.IOException
- Formats input.
- Parameters:
a_ToyModelHSARDataRecordASCIIFile
- File to format.
- Throws:
java.io.IOException
getDataRecord
public AbstractCASDataRecord getDataRecord(long RecordID)
- Specified by:
getDataRecord
in class AbstractCASDataHandler
- Parameters:
RecordID
- The RecordID of the ISAR to be returned.
- Returns:
- An
AbstractCASDataRecord
for the given RecordID
parseInt
protected int parseInt(java.lang.String string)
getToyModelHSARDataRecord
protected ToyModelHSARDataRecord getToyModelHSARDataRecord(long RecordID)
- Parameters:
RecordID
- The RecordID of the ToyModelDataRecord to be returned.
getToyModelHSARDataRecords
public ToyModelHSARDataRecord[] getToyModelHSARDataRecords(java.lang.String zoneCode)
throws java.io.IOException
- This is a convenience method for accessing all the records for a given
zoneCode
- Throws:
java.io.IOException