public abstract class ArchiveStream
extends java.io.InputStream
implements java.io.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
|
public ArchiveEntry getCurrentEntry()
ArchiveEntry
the stream currently points to.ArchiveEntry
public 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.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public boolean isClosed()