1 2 17 18 package org.apache.poi.hdf.model.hdftypes; 19 20 import org.apache.poi.util.LittleEndian; 21 22 38 public class PAPFormattedDiskPage extends FormattedDiskPage 39 { 40 41 46 public PAPFormattedDiskPage(byte[] fkp) 47 { 48 super(fkp); 49 } 50 51 57 public byte[] getGrpprl(int index) 58 { 59 int papxOffset = 2 * LittleEndian.getUnsignedByte(_fkp, ((_crun + 1) * 4) + (index * 13)); 60 int size = 2 * LittleEndian.getUnsignedByte(_fkp, papxOffset); 61 if(size == 0) 62 { 63 size = 2 * LittleEndian.getUnsignedByte(_fkp, ++papxOffset); 64 } 65 else 66 { 67 size--; 68 } 69 70 byte[] papx = new byte[size]; 71 System.arraycopy(_fkp, ++papxOffset, papx, 0, size); 72 return papx; 73 } 74 } 75 | Popular Tags |