Class ZipUtil.ByteArrayUnpacker
java.lang.Object
org.zeroturnaround.zip.ZipUtil.ByteArrayUnpacker
- All Implemented Interfaces:
ZipEntryCallback
- Enclosing class:
ZipUtil
Copies an entry into a byte array.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]getBytes()voidprocess(InputStream in, ZipEntry zipEntry) Invoked for each entry in a ZIP file.
-
Field Details
-
bytes
private byte[] bytes
-
-
Constructor Details
-
ByteArrayUnpacker
private ByteArrayUnpacker()
-
-
Method Details
-
process
Description copied from interface:ZipEntryCallbackInvoked for each entry in a ZIP file.- Specified by:
processin interfaceZipEntryCallback- Parameters:
in- contents of the ZIP entry.zipEntry- ZIP entry.- Throws:
IOException- when any processing exception occurs
-
getBytes
public byte[] getBytes()
-