faster swf extract

This commit is contained in:
Honfika
2014-02-26 20:46:10 +01:00
parent 0a3d158dce
commit c5770daf41
10 changed files with 190 additions and 21 deletions
+4
View File
@@ -412,6 +412,10 @@ public class Helper {
}
public static byte[] readStream(InputStream is) {
if (is instanceof MemoryInputStream) {
return ((MemoryInputStream) is).getAllRead();
}
ByteArrayOutputStream baos = new ByteArrayOutputStream();
try {
byte[] buf = new byte[4096];