public interface EntryReader extends Closeable
Implementations must specify the following:
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this entry reader if it is not already closed.
|
boolean |
hasNext()
Returns
true if this reader contains another entry, blocking if
necessary until either the next entry is available or the end of the
stream is reached. |
Entry |
readEntry()
Reads the next entry, blocking if necessary until an entry is available.
|
void close() throws IOException
EntryReader.readEntry()
has returned null
.close
in interface AutoCloseable
close
in interface Closeable
IOException
- If an unexpected IO error occurred while closing.boolean hasNext() throws IOException
true
if this reader contains another entry, blocking if
necessary until either the next entry is available or the end of the
stream is reached.true
if this reader contains another entry.IOException
- If an unexpected IO error occurred.Entry readEntry() throws IOException
IOException
- If an unexpected IO error occurred while reading the entry.NoSuchElementException
- If this reader does not contain any more entries.Copyright © 2010-2018, ForgeRock All Rights Reserved.