Package org.apache.poi.hssf.record.pivottable

Examples of org.apache.poi.hssf.record.pivottable.ViewFieldsRecord


      // pivot table
      case StreamIDRecord.sid:        return new StreamIDRecord(in);
      case ViewSourceRecord.sid:      return new ViewSourceRecord(in);
      case PageItemRecord.sid:        return new PageItemRecord(in);
      case ViewDefinitionRecord.sid:  return new ViewDefinitionRecord(in);
      case ViewFieldsRecord.sid:      return new ViewFieldsRecord(in);
      case DataItemRecord.sid:        return new DataItemRecord(in);
      case ExtendedPivotTableViewFieldsRecord.sid: return new ExtendedPivotTableViewFieldsRecord(in);
    }
    return new UnknownRecord(in);
  }
View Full Code Here


public final class TestViewFieldsRecord extends TestCase {
 
  public void testUnicodeFlag_bug46693() {
    byte[] data = HexRead.readFromString("01 00 01 00 01 00 04 00 05 00 00 6D 61 72 63 6F");
    RecordInputStream in = TestcaseRecordInputStream.create(ViewFieldsRecord.sid, data);
    ViewFieldsRecord rec = new ViewFieldsRecord(in);
    if (in.remaining() == 1) {
      throw new AssertionFailedError("Identified bug 46693b");
    }
    assertEquals(0, in.remaining());
    assertEquals(4+data.length, rec.getRecordSize());
  }
View Full Code Here

  }

  private static ViewFieldsRecord confirmSerialize(String hexDump) {
    byte[] data = HexRead.readFromString(hexDump);
    RecordInputStream in = TestcaseRecordInputStream.create(ViewFieldsRecord.sid, data);
    ViewFieldsRecord rec = new ViewFieldsRecord(in);
    assertEquals(0, in.remaining());
    assertEquals(4+data.length, rec.getRecordSize());
    byte[] data2 = rec.serialize();
    TestcaseRecordInputStream.confirmRecordEncoding(ViewFieldsRecord.sid, data, data2);
    return rec;
  }
View Full Code Here

      // pivot table
      case StreamIDRecord.sid:        return new StreamIDRecord(in);
      case ViewSourceRecord.sid:      return new ViewSourceRecord(in);
      case PageItemRecord.sid:        return new PageItemRecord(in);
      case ViewDefinitionRecord.sid:  return new ViewDefinitionRecord(in);
      case ViewFieldsRecord.sid:      return new ViewFieldsRecord(in);
      case DataItemRecord.sid:        return new DataItemRecord(in);
      case ExtendedPivotTableViewFieldsRecord.sid: return new ExtendedPivotTableViewFieldsRecord(in);
    }
    return new UnknownRecord(in);
  }
View Full Code Here

TOP

Related Classes of org.apache.poi.hssf.record.pivottable.ViewFieldsRecord

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.