Package org.apache.poi.hssf.record

Examples of org.apache.poi.hssf.record.RecordInputStream.remaining()


   * The correct size of a {@link ChartFormatRecord} is 20 bytes (not including header).
   */
  public void testLoad() {
    RecordInputStream in = TestcaseRecordInputStream.create(data);
    ChartFormatRecord record = new ChartFormatRecord(in);
    if (in.remaining() == 2) {
      throw new AssertionFailedError("Identified bug 44693d");
    }
    assertEquals(0, in.remaining());
    assertEquals(24, record.getRecordSize());

View Full Code Here


    RecordInputStream in = TestcaseRecordInputStream.create(data);
    ChartFormatRecord record = new ChartFormatRecord(in);
    if (in.remaining() == 2) {
      throw new AssertionFailedError("Identified bug 44693d");
    }
    assertEquals(0, in.remaining());
    assertEquals(24, record.getRecordSize());

    byte[] data2 = record.serialize();
    assertTrue(Arrays.equals(data, data2));
  }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.