import java.nio.ByteBuffer;
class ChmExtract {
void main(String pathToCHMFile, String pathToTmpDir) throws IOException {
ChmFile chmFile = null;
long time = System.currentTimeMillis(), time_prev = time;
chmFile = new ChmFile(pathToCHMFile);
chmFile.enumerate(ChmFile.CHM_ENUMERATE_ALL,
new Extractor(chmFile, pathToTmpDir));
time = System.currentTimeMillis();
Vars.logger.info(" finished in " + (time - time_prev) + " ms");
}