byte buffer[] = new byte[maxToRead];
bytes = new byte[maxToRead * 2];
// Keep reading until we run out of bytes for this entry
// We will resize our return value byte array if we run out of space
while (jarIn.available() == 1) {
int readSize = jarIn.read(buffer, 0, buffer.length);
if (readSize > 0) {
totalRead += readSize;
if (totalRead > bytes.length) {
byte temp[] = new byte[bytes.length * 2];