*/
void initializeFile() throws Exception
{
// FILE SIZE
CheckedInputStream cis = null;
File site = new File(filename);
fileSize = site.length();
// File Checksum
try {
cis = new CheckedInputStream( new FileInputStream(filename), new CRC32());
byte[] buf = new byte[128];
while(cis.read(buf) >= 0) {
}
checksum = cis.getChecksum().getValue();
cis.close();
} catch (Exception e) {
logger.log(Level.WARNING, "Something went wrong at initialize file (crc32)", e);
}
// NEXT