Package mwt.wow.mpq

Examples of mwt.wow.mpq.ReadWriteMpqArchive


    dir.mkdirs();

    mpqFile.delete();

    long start = System.currentTimeMillis();
    ReadWriteMpqArchive mpqArchive = new MpqArchive(mpqFile, true);
    int count = countFiles(dir);
    int hashTableSize = Integer.highestOneBit(count * 4 / 3) << 1;
    mpqArchive.initHashtable(hashTableSize);
    addDir(mpqArchive, dir, "");
    mpqArchive.saveMetadata();
    mpqArchive.close();
    long end = System.currentTimeMillis();
    System.out.println("Took: " + (end - start) + "ms");
  }
View Full Code Here

TOP

Related Classes of mwt.wow.mpq.ReadWriteMpqArchive

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.