1 2 17 18 19 package org.apache.poi.poifs.property; 20 21 import java.util.*; 22 23 import java.io.IOException ; 24 25 import org.apache.poi.poifs.common.POIFSConstants; 26 import org.apache.poi.poifs.storage.SmallDocumentBlock; 27 28 33 34 public class RootProperty 35 extends DirectoryProperty 36 { 37 38 41 42 RootProperty() 43 { 44 super("Root Entry"); 45 46 setNodeColor(_NODE_BLACK); 48 setPropertyType(PropertyConstants.ROOT_TYPE); 49 setStartBlock(POIFSConstants.END_OF_CHAIN); 50 } 51 52 59 60 protected RootProperty(final int index, final byte [] array, 61 final int offset) 62 { 63 super(index, array, offset); 64 } 65 66 71 72 public void setSize(int size) 73 { 74 super.setSize(SmallDocumentBlock.calcSize(size)); 75 } 76 } 78 | Popular Tags |