private byte [] convertInputStreamToByteArray( InputStream compressedIn ) throws IOException {
		byte [] bytes = new byte[ 8096 ];
    	ByteArrayOutputStream compressedBOS = new ByteArrayOutputStream();
    	while ( true ) {
    		int nRead = compressedIn.read( bytes );
    		if ( nRead == -1 ) {
    			break;
    		}
    		compressedBOS.write( bytes, 0, nRead );
    	}
    	return compressedBOS.toByteArray();
	}
Converts the contents of an input stream to a byte array
@param compressedIn
@return
@throws IOException
Ghidra/Features/FileFormats/src/main/java/ghidra/file/formats/zlib/ZLIB.java