public final class PagePropertyReader extends Object implements Closeable
Constructor and Description |
---|
PagePropertyReader(WikiCache wikiCache,
String _fullPageName,
PageProperty... _properties)
Creates a PagePropertyReader.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Does nothing but close the underlying reader.
|
boolean |
hasNext()
Answers whether a property remains to be read.
|
PageProperty |
read()
Reads the next property from the page that matches one of those requested.
|
void |
readAllRequested()
Reads the page properties until either each of those
requested has a value, or no more properties remain in the page.
|
public PagePropertyReader(WikiCache wikiCache, String _fullPageName, PageProperty... _properties) throws IOException
_fullPageName
- the full name of the page, including any namespace.IOException
properties()
public boolean hasNext()
public PageProperty read() throws IOException
NoSuchElementException
- if no property remains to be read.IOException
public void readAllRequested() throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException