Package de.innosystec.unrar.rarfile

Examples of de.innosystec.unrar.rarfile.BlockHeader


      default:
    byte[] blockHeaderBuffer = new byte[BlockHeader.blockHeaderSize];
    int bhsize = rof.readFully(blockHeaderBuffer,
      BlockHeader.blockHeaderSize);
    BlockHeader blockHead = new BlockHeader(block,
      blockHeaderBuffer);

    switch (blockHead.getHeaderType()) {
    case NewSubHeader:
    case FileHeader:
        toRead = blockHead.getHeaderSize()
          - 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()
          - BlockHeader.BaseBlockSize
          - BlockHeader.blockHeaderSize;
        byte[] protectHeaderBuffer = new byte[toRead];
        int phsize = rof.readFully(protectHeaderBuffer, toRead);
        ProtectHeader ph = new ProtectHeader(blockHead,
View Full Code Here

TOP

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

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.