Package org.apache.poi.ss.util

Examples of org.apache.poi.ss.util.CellRangeAddress.serialize()


  byte[] recordBytes;
  ByteArrayOutputStream baos = new ByteArrayOutputStream();
  LittleEndianOutputStream out = new LittleEndianOutputStream(baos);
 
  // With nothing set
  ref.serialize(out);
  recordBytes = baos.toByteArray();
    assertEquals(recordBytes.length, data.length);
    for (int i = 0; i < data.length; i++) {
         assertEquals("At offset " + i, 0, recordBytes[i]);
    }
View Full Code Here


    ref.setFirstColumn((short)0);
    ref.setLastColumn((short)3);
 
  // Re-test
    baos.reset();
  ref.serialize(out);
  recordBytes = baos.toByteArray();
  
    assertEquals(recordBytes.length, data.length);
    for (int i = 0; i < data.length; i++) {
         assertEquals("At offset " + i, data[i], recordBytes[i]);
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.