dob.writeInt(33188); // mode
dob.writeInt((int) (System.currentTimeMillis() / 1000)); // mtime
dob.writeInt(0); // gmtdiff ignored
dob.writeByte(0); // no filename
Adler32 headerChecksum = new Adler32();
headerChecksum.update(dob.getData(), 0, dob.getLength());
int hc = (int) headerChecksum.getValue();
dob.writeInt(hc);
out.write(LzopConstants.LZOP_MAGIC);
out.write(dob.getData(), 0, dob.getLength());
} finally {