export uncompressed data from dump tree

This commit is contained in:
honfika@gmail.com
2015-09-15 09:36:42 +02:00
parent 4b7c653aa6
commit 5e42c5b57c
5 changed files with 34 additions and 11 deletions

View File

@@ -890,7 +890,11 @@ public class SWFInputStream implements AutoCloseable {
}
public static byte[] uncompressByteArray(byte[] data) throws IOException {
InflaterInputStream dis = new InflaterInputStream(new ByteArrayInputStream(data));
return uncompressByteArray(data, 0, data.length);
}
public static byte[] uncompressByteArray(byte[] data, int offset, int length) throws IOException {
InflaterInputStream dis = new InflaterInputStream(new ByteArrayInputStream(data, offset, length));
ByteArrayOutputStream baos = new ByteArrayOutputStream();
byte[] buf = new byte[4096];
int c = 0;