Package org.apache.poi.hssf.record

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


        // Normally, ContinueRecords are handled internally
        // However, in a few cases, there is a gap between a record at
        //  its Continue, so we have to handle them specially
        // This logic is much like in RecordFactory.createRecords()
        Record[] recs = RecordFactory.createRecord(in);
        ContinueRecord crec = (ContinueRecord)recs[0];
        if((lastRec instanceof ObjRecord) || (lastRec instanceof TextObjectRecord)) {
          // You can have Obj records between a DrawingRecord
          //  and its continue!
          lastDrawingRecord.processContinueRecord( crec.getData() );
          // Trigger them on the drawing record, now it's complete
          rec = lastDrawingRecord;
        }
        else if((lastRec instanceof DrawingGroupRecord)) {
          ((DrawingGroupRecord)lastRec).processContinueRecord(crec.getData());
          // Trigger them on the drawing record, now it's complete
          rec = lastRec;
        }
        else {
                    if (rec instanceof UnknownRecord) {
View Full Code Here


  public void testUnknownContinue_bug46280() {
    Record[] inRecs = {
      new RowRecord(0),
      new NumberRecord(),
      new UnknownRecord(0x5555, "dummydata".getBytes()),
      new ContinueRecord("moredummydata".getBytes()),
    };
    RecordStream rs = new RecordStream(Arrays.asList(inRecs), 0);
    RowRecordsAggregate rra;
    try {
      rra = new RowRecordsAggregate(rs, SharedValueManager.EMPTY);
View Full Code Here

   * As of June 2009, PLS is still uninterpreted by POI
   */
  public void testDuplicatePLS_bug47415() {
    Record plsA = ur(UnknownRecord.PLS_004D, "BA AD F0 0D");
    Record plsB = ur(UnknownRecord.PLS_004D, "DE AD BE EF");
    Record contB1 = new ContinueRecord(HexRead.readFromString("FE ED"));
    Record contB2 = new ContinueRecord(HexRead.readFromString("FA CE"));
    Record[] recs = {
        new HeaderRecord("&LSales Figures"),
        new FooterRecord("&LInventory"),
        new HCenterRecord(),
        new VCenterRecord(),
View Full Code Here

  public void testUnknownContinue_bug46280() {
    Record[] inRecs = {
      new RowRecord(0),
      new NumberRecord(),
      new UnknownRecord(0x5555, "dummydata".getBytes()),
      new ContinueRecord("moredummydata".getBytes()),
    };
    RecordStream rs = new RecordStream(Arrays.asList(inRecs), 0);
    RowRecordsAggregate rra;
    try {
      rra = new RowRecordsAggregate(rs, SharedValueManager.createEmpty());
View Full Code Here

TOP

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

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.