public static class Record.Impl extends Object implements Record
Impl
is the default implementation of Record.Record.Impl
Constructor and Description |
---|
Record.Impl(String id,
RAF file,
long offset,
int length)
Creates a new
Impl record. |
Modifier and Type | Method and Description |
---|---|
RAF |
getFile()
getFile returns the random access file in which
the record belongs. |
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. |
public Record.Impl(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.public String getID()
Record
getID
returns the primary identifier of the
record.public RAF getFile()
Record
getFile
returns the random access file in which
the record belongs.public long getOffset()
Record
getOffset
returns the byte offset in the file at
which the record begins.Copyright © 2014 BioJava. All rights reserved.