windows+mac "exe" export with adobe projector

This commit is contained in:
honfika@gmail.com
2015-06-18 08:35:15 +02:00
parent ad9497cb46
commit 2ef4e759c0
5 changed files with 108 additions and 37 deletions

View File

@@ -655,6 +655,19 @@ public class Helper {
return baos.toByteArray();
}
public static void copyStream(InputStream is, OutputStream os) {
try {
final int bufSize = 4096;
byte[] buf = new byte[bufSize];
int cnt = 0;
while ((cnt = is.read(buf)) > 0) {
os.write(buf, 0, cnt);
}
} catch (IOException ex) {
// ignore
}
}
public static void copyStream(InputStream is, OutputStream os, long maxLength) {
try {
final int bufSize = 4096;