static public void uncompressFile( String filenameIn, String filenameOut, boolean inflate) throws IOException {
long lenIn = new File(filenameIn).length();
if (debug) System.out.println("read compressed file= "+filenameIn+ " len = "+lenIn);
FileInputStream fin = new FileInputStream(filenameIn);
InputStream in = (inflate) ? new InflaterInputStream(fin) : new GZIPInputStream(fin);
in = new BufferedInputStream(in, 1000);
FileOutputStream fout = new FileOutputStream(filenameOut);
OutputStream out = new BufferedOutputStream(fout, 1000);