Package org.biojava.bio.seq.db.emblcd
Class EntryNamRandomAccess
- java.lang.Object
- 
- org.biojava.bio.seq.db.emblcd.EmblCDROMRandomAccess
- 
- org.biojava.bio.seq.db.emblcd.EntryNamRandomAccess
 
 
- 
 public class EntryNamRandomAccess extends EmblCDROMRandomAccess EntryNamRandomAccessobjects provide random access to records within the "entrynam.idx" file of an EMBL CD-ROM format binary index. Records are retrieved by their sequence ID.- Since:
- 1.2
- Author:
- Keith James
 
- 
- 
Field Summary- 
Fields inherited from class org.biojava.bio.seq.db.emblcd.EmblCDROMRandomAccessraIndexFile, recBytes, recParser
 
- 
 - 
Constructor SummaryConstructors Constructor Description EntryNamRandomAccess(File indexFile, int headerLength, int recordLength, long recordCount)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected StringgetRecordKey(Object[] record)getRecordKeyreturns the field from the record on which the records were sorted in the index.protected Object[]readRecord()readRecordcreates an array of Objects from the raw byte array of a single record.- 
Methods inherited from class org.biojava.bio.seq.db.emblcd.EmblCDROMRandomAccessclose, findRecord, getFile
 
- 
 
- 
- 
- 
Constructor Detail- 
EntryNamRandomAccesspublic EntryNamRandomAccess(File indexFile, int headerLength, int recordLength, long recordCount) throws FileNotFoundException - Throws:
- FileNotFoundException
 
 
- 
 - 
Method Detail- 
readRecordprotected Object[] readRecord() throws IOException readRecordcreates an array of Objects from the raw byte array of a single record. For this file type the array containsString seqID, Long rPosition, Long sPosition, Integer fileNumber. See EMBOSS documentation for a full description.- Specified by:
- readRecordin class- EmblCDROMRandomAccess
- Returns:
- an Object []array.
- Throws:
- IOException- if an error occurs.
 
 - 
getRecordKeyprotected String getRecordKey(Object[] record) getRecordKeyreturns the field from the record on which the records were sorted in the index. (i.e. sequence ID or accession number).- Specified by:
- getRecordKeyin class- EmblCDROMRandomAccess
- Returns:
- a String.
 
 
- 
 
-