public abstract class ArchiveStream
extends java.io.InputStream
implements java.io.Closeable
ArchiveEntry.
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
|
public ArchiveEntry getCurrentEntry()
ArchiveEntry the stream currently points to.ArchiveEntrypublic ArchiveEntry getNextEntry() throws java.io.IOException
ArchiveEntry and returns it.java.io.IOException - propagated I/O exceptionprotected abstract ArchiveEntry createNextEntry() throws java.io.IOException
ArchiveEntry for the ArchiveStream implementation.java.io.IOException - propagated I/O exceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOExceptionpublic boolean isClosed()
Copyright © 2013-2018. All Rights Reserved.