I am trying to read a single file from a java.util.zip.ZipInputStream, and copy it into a java.io.ByteArrayOutputStream (so that I can then create a
java.util.zip.ZipInputStream
java.io.ByteArrayOutputStream
I'd use IOUtils from the commons io project.
IOUtils.copy(zipStream, byteArrayOutputStream);