out = System.out;
} else {
resultFile = new File(filename.substring(0, filename.length() - SUFFIX.length()));
out = new FileOutputStream(resultFile);
}
int uncompLen = in.readAndWrite(out);
in.close();
out.flush();
out.close();
if (resultFile != null) {
System.out.printf("Uncompressed '%s' into '%s' (%d->%d bytes)\n",