Package de.innosystec.unrar.rarfile

Examples of de.innosystec.unrar.rarfile.FileHeader


          - BlockHeader.BaseBlockSize
          - BlockHeader.blockHeaderSize;
        byte[] fileHeaderBuffer = new byte[toRead];
        int fhsize = rof.readFully(fileHeaderBuffer, toRead);

        FileHeader fh = new FileHeader(blockHead, fileHeaderBuffer);
        // if (DEBUG) {
        // fh.print();
        // }
        headers.add(fh);
        newpos = fh.getPositionInFile() + fh.getHeaderSize()
          + fh.getFullPackSize();
        rof.setPosition(newpos);
        break;

    case ProtectHeader:
        toRead = blockHead.getHeaderSize()
View Full Code Here


      // TODO Auto-generated catch block
      e.printStackTrace();
    }
    if(a!=null){
      a.getMainHeader().print();
      FileHeader fh = a.nextFileHeader();
      while(fh!=null){ 
        try {
          File out = new File("/home/Avenger/testdata/"+fh.getFileNameString().trim());
          System.out.println(out.getAbsolutePath());
          FileOutputStream os = new FileOutputStream(out);
          a.extractFile(fh, os);
          os.close();
        } catch (FileNotFoundException e) {
View Full Code Here

    private Volume() {
    }

    public static boolean mergeArchive(Archive archive, ComprDataIO dataIO)
            throws IOException {
        FileHeader hd = dataIO.getSubHeader();
        if (hd.getUnpVersion()>=20 &&
                hd.getFileCRC()!=0xffffffff &&
                dataIO.getPackedCRC()!=~hd.getFileCRC()) {
            System.err.println("Data Bad CRC");
        }

        boolean oldNumbering = !archive.getMainHeader().isNewNumbering() ||
                archive.isOldFormat();
View Full Code Here

TOP

Related Classes of de.innosystec.unrar.rarfile.FileHeader

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.