org.egothor.core
Interface IMetaReader

All Superinterfaces:
Sequence<DocumentData>, SequenceWithClose<DocumentData>

public interface IMetaReader
extends SequenceWithClose<DocumentData>

This interface declares, that an object can act as a sequence with a close operation and it also offers a method that returns uid of the item that is read currently.

   while ((i=Sequence.next()) != null) {
    System.out.println(i.toString()+" has uid "+Sequence.getUid());
    :
   }
   Sequence.close();
 

Author:
Leo Galambos

Method Summary
 long getLocalUID()
          Gets the uid attribute of the item that is read currently.
 java.lang.String getLocation()
          Returns location of this sequence.
 
Methods inherited from interface org.egothor.core.SequenceWithClose
close
 
Methods inherited from interface org.egothor.core.Sequence
next
 

Method Detail

getLocalUID

long getLocalUID()
Gets the uid attribute of the item that is read currently.

Returns:
The uid value

getLocation

java.lang.String getLocation()
Returns location of this sequence. XXX: Fix me!