|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectmaiolum.plainxml.indexing.IndexIterator
Parses IndexItems from BufferedReader. Parsed items can be retrieved through the Iterator methods.
| Constructor Summary | |
IndexIterator(java.io.BufferedReader reader)
Constructs new IndexIterator over given BufferedReader. |
|
IndexIterator(java.lang.String filename)
Constructs new IndexIterator over index specified by filename in its String parameter. |
|
| Method Summary | |
java.io.BufferedReader |
getReader()
Returns associated BufferedReader, from which will be the index read. |
boolean |
hasNext()
Determines, whether next call of next() method will return a valid non-&null; IndexItem. |
static void |
main(java.lang.String[] args)
|
java.lang.Object |
next()
Retrieves next IndexItem from underlying index. |
void |
remove()
This class does not support this method. |
void |
setReader(java.io.BufferedReader reader)
Associates given BufferedReader with this Iterator. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public IndexIterator(java.io.BufferedReader reader)
throws IndexIOException
reader -
IndexIOException, - if first IndexItem cannot be read from the
BufferedReader.
IndexIOException
public IndexIterator(java.lang.String filename)
throws IndexIOException
IndexIOException, - if first IndexItem cannot be read from the
constructed BufferedReader.
IndexIOException| Method Detail |
public java.io.BufferedReader getReader()
public void setReader(java.io.BufferedReader reader)
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void remove()
remove in interface java.util.Iterator
public static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||