Package org.biojava.bio.program.indexdb
Class Record.Impl
java.lang.Object
org.biojava.bio.program.indexdb.Record.Impl
- All Implemented Interfaces:
Record
- Enclosing interface:
Record
Impl
is the default implementation of Record.- Author:
- Matthew Pocock
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.biojava.bio.program.indexdb.Record
Record.Impl
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetFile()
getFile
returns the random access file in which the record belongs.getID()
getID
returns the primary identifier of the record.int
getLength
returns the length of the record in bytes.long
getOffset
returns the byte offset in the file at which the record begins.
-
Constructor Details
-
Impl
Creates a newImpl
record.- Parameters:
id
- aString
primary ID.file
- aRAF
file.offset
- along
byte offset.length
- anint
byte record length.
-
-
Method Details
-
getID
Description copied from interface:Record
getID
returns the primary identifier of the record. -
getFile
Description copied from interface:Record
getFile
returns the random access file in which the record belongs. -
getOffset
Description copied from interface:Record
getOffset
returns the byte offset in the file at which the record begins. -
getLength
Description copied from interface:Record
getLength
returns the length of the record in bytes.
-