Package org.biojava.bio.program.indexdb
Class Record.Impl
- java.lang.Object
-
- org.biojava.bio.program.indexdb.Record.Impl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.biojava.bio.program.indexdb.Record
Record.Impl
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RAF
getFile()
getFile
returns the random access file in which the record belongs.java.lang.String
getID()
getID
returns the primary identifier of the record.int
getLength()
getLength
returns the length of the record in bytes.long
getOffset()
getOffset
returns the byte offset in the file at which the record begins.
-
-
-
Constructor Detail
-
Impl
public Impl(java.lang.String id, RAF file, long offset, int length)
Creates a newImpl
record.- Parameters:
id
- aString
primary ID.file
- aRAF
file.offset
- along
byte offset.length
- anint
byte record length.
-
-
Method Detail
-
getID
public java.lang.String getID()
Description copied from interface:Record
getID
returns the primary identifier of the record.
-
getFile
public RAF getFile()
Description copied from interface:Record
getFile
returns the random access file in which the record belongs.
-
getOffset
public long getOffset()
Description copied from interface:Record
getOffset
returns the byte offset in the file at which the record begins.
-
-