|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.biojava.bio.program.indexdb.Record.Impl
public static class Record.Impl
Impl
is the default implementation of Record.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.biojava.bio.program.indexdb.Record |
---|
Record.Impl |
Constructor Summary | |
---|---|
Record.Impl(java.lang.String id,
RAF file,
long offset,
int length)
Creates a new Impl record. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Record.Impl(java.lang.String id, RAF file, long offset, int length)
Impl
record.
id
- a String
primary ID.file
- a RAF
file.offset
- a long
byte offset.length
- an int
byte record length.Method Detail |
---|
public java.lang.String getID()
Record
getID
returns the primary identifier of the
record.
getID
in interface Record
String
ID.public RAF getFile()
Record
getFile
returns the random access file in which
the record belongs.
getFile
in interface Record
RAF
.public long getOffset()
Record
getOffset
returns the byte offset in the file at
which the record begins.
getOffset
in interface Record
long
offset.public int getLength()
Record
getLength
returns the length of the record in
bytes.
getLength
in interface Record
int
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |