Package org.zeroturnaround.zip
Class ZipUtil.ByteArrayUnpacker
- java.lang.Object
-
- org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
-
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
- ZipUtil
private static class ZipUtil.ByteArrayUnpacker extends java.lang.Object implements ZipEntryCallback
Copies an entry into a byte array.
-
-
Field Summary
Fields Modifier and Type Field Description private byte[]
bytes
-
Constructor Summary
Constructors Modifier Constructor Description private
ByteArrayUnpacker()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
getBytes()
void
process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry)
Invoked for each entry in a ZIP file.
-
-
-
Method Detail
-
process
public void process(java.io.InputStream in, java.util.zip.ZipEntry zipEntry) throws java.io.IOException
Description copied from interface:ZipEntryCallback
Invoked for each entry in a ZIP file.- Specified by:
process
in interfaceZipEntryCallback
- Parameters:
in
- contents of the ZIP entry.zipEntry
- ZIP entry.- Throws:
java.io.IOException
- when any processing exception occurs
-
getBytes
public byte[] getBytes()
-
-