Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.BOFRecord


        LastCellOfRowDummyRecord lc = (LastCellOfRowDummyRecord)record;
        log("Got end-of row, row was " + lc.getRow() + ", last column was " + lc.getLastColumnNumber());
      }
     
      if(record instanceof BOFRecord) {
        BOFRecord r = (BOFRecord)record;
        if(r.getType() == BOFRecord.TYPE_WORKSHEET) {
          log("On new sheet");
        }
      }
      if(record instanceof RowRecord) {
        RowRecord rr = (RowRecord)record;
View Full Code Here


        LastCellOfRowDummyRecord lc = (LastCellOfRowDummyRecord)record;
        log("Got end-of row, row was " + lc.getRow() + ", last column was " + lc.getLastColumnNumber());
      }
     
      if(record instanceof BOFRecord) {
        BOFRecord r = (BOFRecord)record;
        if(r.getType() == BOFRecord.TYPE_WORKSHEET) {
          log("On new sheet");
        }
      }
      if(record instanceof RowRecord) {
        RowRecord rr = (RowRecord)record;
View Full Code Here

        }
        return retval;
    }

    private static BOFRecord createBOF() {
        BOFRecord retval = new BOFRecord();

        retval.setVersion(( short ) 0x600);
        retval.setType(BOFRecord.TYPE_WORKBOOK);
        retval.setBuild(( short ) 0x10d3);
        retval.setBuildYear(( short ) 1996);
        retval.setHistoryBitMask(0x41);   // was c1 before verify
        retval.setRequiredVersion(0x6);
        return retval;
    }
View Full Code Here

        int dimsloc = -1;

        if (rs.peekNextSid() != BOFRecord.sid) {
            throw new RuntimeException("BOF record expected");
        }
        BOFRecord bof = (BOFRecord) rs.getNext();
        if (bof.getType() != BOFRecord.TYPE_WORKSHEET) {
            // TODO - fix junit tests throw new RuntimeException("Bad BOF record type");
        }
        records.add(bof);
        while (rs.hasNext()) {
            int recSid = rs.peekNextSid();
View Full Code Here

    /**
     * creates the BOF record
     */
    /* package */ static BOFRecord createBOF() {
        BOFRecord retval = new BOFRecord();

        retval.setVersion(( short ) 0x600);
        retval.setType(( short ) 0x010);

        retval.setBuild(( short ) 0x0dbb);
        retval.setBuildYear(( short ) 1996);
        retval.setHistoryBitMask(0xc1);
        retval.setRequiredVersion(0x6);
        return retval;
    }
View Full Code Here

    return r;
  }

  private BOFRecord createBOFRecord()
  {
    BOFRecord r = new BOFRecord();
    r.setVersion((short)600);
    r.setType((short)20);
    r.setBuild((short)0x1CFE);
    r.setBuildYear((short)1997);
    r.setHistoryBitMask(0x40C9);
    r.setRequiredVersion(106);
    return r;
  }
View Full Code Here

    return r;
  }

  private BOFRecord createBOFRecord()
  {
    BOFRecord r = new BOFRecord();
    r.setVersion((short)600);
    r.setType((short)20);
    r.setBuild((short)0x1CFE);
    r.setBuildYear((short)1997);
    r.setHistoryBitMask(0x40C9);
    r.setRequiredVersion(106);
    return r;
  }
View Full Code Here

        int dimsloc = -1;

        if (rs.peekNextSid() != BOFRecord.sid) {
            throw new RuntimeException("BOF record expected");
        }
        BOFRecord bof = (BOFRecord) rs.getNext();
        if (bof.getType() != BOFRecord.TYPE_WORKSHEET) {
            // TODO - fix junit tests throw new RuntimeException("Bad BOF record type");
        }
        records.add(bof);
        while (rs.hasNext()) {
            int recSid = rs.peekNextSid();
View Full Code Here

    /**
     * creates the BOF record
     */
    /* package */ static BOFRecord createBOF() {
        BOFRecord retval = new BOFRecord();

        retval.setVersion(( short ) 0x600);
        retval.setType(( short ) 0x010);

        retval.setBuild(( short ) 0x0dbb);
        retval.setBuildYear(( short ) 1996);
        retval.setHistoryBitMask(0xc1);
        retval.setRequiredVersion(0x6);
        return retval;
    }
View Full Code Here

        }
        return retval;
    }

    private static BOFRecord createBOF() {
        BOFRecord retval = new BOFRecord();

        retval.setVersion(( short ) 0x600);
        retval.setType(BOFRecord.TYPE_WORKBOOK);
        retval.setBuild(( short ) 0x10d3);
        retval.setBuildYear(( short ) 1996);
        retval.setHistoryBitMask(0x41);   // was c1 before verify
        retval.setRequiredVersion(0x6);
        return retval;
    }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.BOFRecord

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.