public class POIXMLProperties extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
POIXMLProperties.CoreProperties
The core document properties
|
static class |
POIXMLProperties.CustomProperties
Custom document properties
|
static class |
POIXMLProperties.ExtendedProperties
Extended document properties
|
| Constructor and Description |
|---|
POIXMLProperties(OPCPackage docPackage) |
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Commit changes to the underlying OPC package
|
POIXMLProperties.CoreProperties |
getCoreProperties()
Returns the core document properties
|
POIXMLProperties.CustomProperties |
getCustomProperties()
Returns the custom document properties
|
POIXMLProperties.ExtendedProperties |
getExtendedProperties()
Returns the extended document properties
|
String |
getThumbnailFilename()
Returns the name of the Document thumbnail, eg
thumbnail.jpeg, or null if there
isn't one. |
InputStream |
getThumbnailImage()
Returns the Document thumbnail image data, or
null if there isn't one. |
protected PackagePart |
getThumbnailPart()
Returns the
PackagePart for the Document
Thumbnail, or null if there isn't one |
void |
setThumbnail(String filename,
InputStream imageData)
Sets the Thumbnail for the document, replacing any existing one.
|
public POIXMLProperties(OPCPackage docPackage) throws IOException, OpenXML4JException, org.apache.xmlbeans.XmlException
IOExceptionOpenXML4JExceptionorg.apache.xmlbeans.XmlExceptionpublic POIXMLProperties.CoreProperties getCoreProperties()
public POIXMLProperties.ExtendedProperties getExtendedProperties()
public POIXMLProperties.CustomProperties getCustomProperties()
protected PackagePart getThumbnailPart()
PackagePart for the Document
Thumbnail, or null if there isn't onepublic String getThumbnailFilename()
thumbnail.jpeg, or null if there
isn't one.public InputStream getThumbnailImage() throws IOException
null if there isn't one.IOException - if the thumbnail can't be readpublic void setThumbnail(String filename, InputStream imageData) throws IOException
filename - The filename for the thumbnail image, eg thumbnail.jpgimageData - The inputstream to read the thumbnail image fromIOException - if the thumbnail can't be writtenpublic void commit()
throws IOException
IOException - if the properties can't be savedPOIXMLException - if the properties are erroneous