Package org.openpreservation.format.zip
Interface ZipEntryProcessor
public interface ZipEntryProcessor
Interface for processing
ZipEntry
objects from a ZipArchive
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Returnstrue
if the processor accepts the suppliedZipEntry
for processing.void
process
(ZipEntry entry, InputStream is) Process theZipEntry
and it'sInputStream
.
-
Method Details
-
accepts
Returnstrue
if the processor accepts the suppliedZipEntry
for processing.- Parameters:
entry
- TheZipEntry
to evaluate.- Returns:
true
if the processor accepts the entry, otherwise
false
.
-
process
Process theZipEntry
and it'sInputStream
.- Parameters:
entry
- TheZipEntry
to process.
is
- TheInputStream
for the
ZipEntry
entry
.- Throws:
IOException
- when an IO error occurs reading theInputStream
.
-