1 2 17 18 19 package org.apache.poi.contrib.poibrowser; 20 21 import java.io.IOException ; 22 import java.io.UnsupportedEncodingException ; 23 24 import org.apache.poi.hpsf.MarkUnsupportedException; 25 import org.apache.poi.hpsf.NoPropertySetStreamException; 26 import org.apache.poi.hpsf.PropertySet; 27 import org.apache.poi.hpsf.PropertySetFactory; 28 import org.apache.poi.hpsf.UnexpectedPropertySetTypeException; 29 import org.apache.poi.poifs.filesystem.DocumentInputStream; 30 import org.apache.poi.poifs.filesystem.POIFSDocumentPath; 31 32 40 public class PropertySetDescriptor extends DocumentDescriptor 41 { 42 43 protected PropertySet propertySet; 44 45 49 public PropertySet getPropertySet() 50 { 51 return propertySet; 52 } 53 54 55 56 69 public PropertySetDescriptor(final String name, 70 final POIFSDocumentPath path, 71 final DocumentInputStream stream, 72 final int nrOfBytesToDump) 73 throws UnexpectedPropertySetTypeException, NoPropertySetStreamException, 74 MarkUnsupportedException, UnsupportedEncodingException , 75 IOException 76 { 77 super(name, path, stream, nrOfBytesToDump); 78 propertySet = PropertySetFactory.create(stream); 79 } 80 81 } 82 | Popular Tags |