public abstract class ArchiveStream extends InputStream implements Closeable
ArchiveEntry.
The getNextEntry() method is used to reset the input stream ready for reading the data from the next entry.| Constructor and Description |
|---|
ArchiveStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract ArchiveEntry |
createNextEntry()
Abstract method to create the next
ArchiveEntry for the ArchiveStream implementation. |
ArchiveEntry |
getCurrentEntry()
Returns the
ArchiveEntry the stream currently points to. |
ArchiveEntry |
getNextEntry()
Moves the pointer of the stream to the next
ArchiveEntry and returns it. |
boolean |
isClosed()
Checks whether the current stream has been closed
|
available, mark, markSupported, read, read, read, reset, skippublic ArchiveEntry getCurrentEntry()
ArchiveEntry the stream currently points to.ArchiveEntrypublic ArchiveEntry getNextEntry() throws IOException
ArchiveEntry and returns it.IOException - propagated I/O exceptionprotected abstract ArchiveEntry createNextEntry() throws IOException
ArchiveEntry for the ArchiveStream implementation.IOException - propagated I/O exceptionpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableclose in class InputStreamIOExceptionpublic boolean isClosed()
Copyright © 2013-2015. All Rights Reserved.