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.IOExceptionproperties()public boolean hasNext()
public PageProperty read() throws IOException
NoSuchElementException - if no property remains to be read.IOExceptionpublic void readAllRequested() throws IOException
IOExceptionpublic void close() throws IOException
close in interface Closeableclose in interface AutoCloseableIOException