org.freehep.record.source
Interface RandomAccessRecordSource

All Superinterfaces:
SequentialRecordSource
All Known Subinterfaces:
TaggedRecordSource

public interface RandomAccessRecordSource
extends SequentialRecordSource

A record source which (efficiently) supports random access.

Version:
$Id: RandomAccessRecordSource.java 8584 2006-08-10 23:06:37Z duns $

Field Summary
 
Fields inherited from interface org.freehep.record.source.SequentialRecordSource
UNKNOWN
 
Method Summary
 int currentIndex()
          Return the index of the current record.
 void goToRecord(int index)
          Go to a specific record, specified by index.
 
Methods inherited from interface org.freehep.record.source.SequentialRecordSource
close, getCurrentRecord, getEstimatedSize, getRecordClass, getSourceName, next, releaseRecord, rewind
 

Method Detail

goToRecord

void goToRecord(int index)
                throws NoSuchRecordException
Go to a specific record, specified by index.

Parameters:
index - The index of the record to access (numbered from 0).
Throws:
NoSuchRecordException - If the specified record does not exist.

currentIndex

int currentIndex()
Return the index of the current record.



Copyright © 2000-2007 FreeHEP. All Rights Reserved.