|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.poi.openxml4j.opc.PackagePart
org.apache.poi.openxml4j.opc.internal.PackagePropertiesPart
public final class PackagePropertiesPart
Represents the core properties part of a package.
| Field Summary | |
|---|---|
protected Nullable<java.lang.String> |
category
A categorization of the content of this package. |
protected Nullable<java.lang.String> |
contentStatus
The status of the content. |
protected Nullable<java.lang.String> |
contentType
The type of content represented, generally defined by a specific use and intended audience. |
protected Nullable<java.util.Date> |
created
Date of creation of the resource. |
protected Nullable<java.lang.String> |
creator
An entity primarily responsible for making the content of the resource. |
protected Nullable<java.lang.String> |
description
An explanation of the content of the resource. |
protected Nullable<java.lang.String> |
identifier
An unambiguous reference to the resource within a given context. |
protected Nullable<java.lang.String> |
keywords
A delimited set of keywords to support searching and indexing. |
protected Nullable<java.lang.String> |
language
The language of the intellectual content of the resource. |
protected Nullable<java.lang.String> |
lastModifiedBy
The user who performed the last modification. |
protected Nullable<java.util.Date> |
lastPrinted
The date and time of the last printing. |
protected Nullable<java.util.Date> |
modified
Date on which the resource was changed. |
static java.lang.String |
NAMESPACE_CP_URI
|
static java.lang.String |
NAMESPACE_DC_URI
|
static java.lang.String |
NAMESPACE_DCTERMS_URI
|
protected Nullable<java.lang.String> |
revision
The revision number. |
protected Nullable<java.lang.String> |
subject
The topic of the content of the resource. |
protected Nullable<java.lang.String> |
title
The name given to the resource. |
protected Nullable<java.lang.String> |
version
The version number. |
| Fields inherited from class org.apache.poi.openxml4j.opc.PackagePart |
|---|
_container, _contentType, _partName |
| Fields inherited from interface org.apache.poi.openxml4j.opc.PackageProperties |
|---|
NAMESPACE_DC, NAMESPACE_DCTERMS |
| Constructor Summary | |
|---|---|
PackagePropertiesPart(OPCPackage pack,
PackagePartName partName)
Constructor. |
|
| Method Summary | |
|---|---|
void |
close()
Close this part : flush this part, close the input stream and output stream. |
void |
flush()
Flush the content of this part. |
Nullable<java.lang.String> |
getCategoryProperty()
Get the category property. |
Nullable<java.lang.String> |
getContentStatusProperty()
Get content status. |
Nullable<java.lang.String> |
getContentTypeProperty()
Get content type. |
Nullable<java.util.Date> |
getCreatedProperty()
Get created date. |
java.lang.String |
getCreatedPropertyString()
Get created date formated into a String. |
Nullable<java.lang.String> |
getCreatorProperty()
Get creator. |
Nullable<java.lang.String> |
getDescriptionProperty()
Get description. |
Nullable<java.lang.String> |
getIdentifierProperty()
Get identifier. |
protected java.io.InputStream |
getInputStreamImpl()
Abstract method that get the input stream of this part. |
Nullable<java.lang.String> |
getKeywordsProperty()
Get keywords. |
Nullable<java.lang.String> |
getLanguageProperty()
Get the language. |
Nullable<java.lang.String> |
getLastModifiedByProperty()
Get the author of last modifications. |
Nullable<java.util.Date> |
getLastPrintedProperty()
Get last printed date. |
java.lang.String |
getLastPrintedPropertyString()
Get last printed date formated into a String. |
Nullable<java.util.Date> |
getModifiedProperty()
Get modified date. |
java.lang.String |
getModifiedPropertyString()
Get modified date formated into a String. |
protected java.io.OutputStream |
getOutputStreamImpl()
Abstract method that get the output stream of this part. |
Nullable<java.lang.String> |
getRevisionProperty()
Get revision. |
Nullable<java.lang.String> |
getSubjectProperty()
Get subject. |
Nullable<java.lang.String> |
getTitleProperty()
Get title. |
Nullable<java.lang.String> |
getVersionProperty()
Get version. |
boolean |
load(java.io.InputStream ios)
Load the content of this part. |
boolean |
save(java.io.OutputStream zos)
Save the content of this part and the associated relationships part (if this part own at least one relationship) into the specified output stream. |
void |
setCategoryProperty(java.lang.String category)
Set the category. |
void |
setContentStatusProperty(java.lang.String contentStatus)
Set the content status. |
void |
setContentTypeProperty(java.lang.String contentType)
Set the content type. |
void |
setCreatedProperty(Nullable<java.util.Date> created)
Set the created date. |
void |
setCreatedProperty(java.lang.String created)
Set the created date. |
void |
setCreatorProperty(java.lang.String creator)
Set the creator. |
void |
setDescriptionProperty(java.lang.String description)
Set the description. |
void |
setIdentifierProperty(java.lang.String identifier)
Set identifier. |
void |
setKeywordsProperty(java.lang.String keywords)
Set keywords. |
void |
setLanguageProperty(java.lang.String language)
Set language. |
void |
setLastModifiedByProperty(java.lang.String lastModifiedBy)
Set last modifications author. |
void |
setLastPrintedProperty(Nullable<java.util.Date> lastPrinted)
Set last printed date. |
void |
setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date. |
void |
setModifiedProperty(Nullable<java.util.Date> modified)
Set last modification date. |
void |
setModifiedProperty(java.lang.String modified)
Set last modification date. |
void |
setRevisionProperty(java.lang.String revision)
Set revision. |
void |
setSubjectProperty(java.lang.String subject)
Set subject. |
void |
setTitleProperty(java.lang.String title)
Set title. |
void |
setVersionProperty(java.lang.String version)
Set version. |
| Methods inherited from class org.apache.poi.openxml4j.opc.PackagePart |
|---|
addExternalRelationship, addExternalRelationship, addRelationship, addRelationship, addRelationship, addRelationship, clear, clearRelationships, compareTo, findExistingRelation, getContentType, getContentTypeDetails, getInputStream, getOutputStream, getPackage, getPartName, getRelatedPart, getRelationship, getRelationships, getRelationshipsByType, getSize, hasRelationships, isDeleted, isRelationshipExists, isRelationshipPart, removeRelationship, setContentType, setDeleted, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String NAMESPACE_DC_URI
public static final java.lang.String NAMESPACE_CP_URI
public static final java.lang.String NAMESPACE_DCTERMS_URI
protected Nullable<java.lang.String> category
protected Nullable<java.lang.String> contentStatus
protected Nullable<java.lang.String> contentType
protected Nullable<java.util.Date> created
protected Nullable<java.lang.String> creator
protected Nullable<java.lang.String> description
protected Nullable<java.lang.String> identifier
protected Nullable<java.lang.String> keywords
protected Nullable<java.lang.String> language
protected Nullable<java.lang.String> lastModifiedBy
protected Nullable<java.util.Date> lastPrinted
protected Nullable<java.util.Date> modified
protected Nullable<java.lang.String> revision
protected Nullable<java.lang.String> subject
protected Nullable<java.lang.String> title
protected Nullable<java.lang.String> version
| Constructor Detail |
|---|
public PackagePropertiesPart(OPCPackage pack,
PackagePartName partName)
throws InvalidFormatException
pack - Container package.partName - Name of this part.
InvalidFormatException - Throws if the content is invalid.| Method Detail |
|---|
public Nullable<java.lang.String> getCategoryProperty()
getCategoryProperty in interface PackagePropertiesPackageProperties.getCategoryProperty()public Nullable<java.lang.String> getContentStatusProperty()
getContentStatusProperty in interface PackagePropertiesPackageProperties.getContentStatusProperty()public Nullable<java.lang.String> getContentTypeProperty()
getContentTypeProperty in interface PackagePropertiesPackageProperties.getContentTypeProperty()public Nullable<java.util.Date> getCreatedProperty()
getCreatedProperty in interface PackagePropertiesPackageProperties.getCreatedProperty()public java.lang.String getCreatedPropertyString()
public Nullable<java.lang.String> getCreatorProperty()
getCreatorProperty in interface PackagePropertiesPackageProperties.getCreatorProperty()public Nullable<java.lang.String> getDescriptionProperty()
getDescriptionProperty in interface PackagePropertiesPackageProperties.getDescriptionProperty()public Nullable<java.lang.String> getIdentifierProperty()
getIdentifierProperty in interface PackagePropertiesPackageProperties.getIdentifierProperty()public Nullable<java.lang.String> getKeywordsProperty()
getKeywordsProperty in interface PackagePropertiesPackageProperties.getKeywordsProperty()public Nullable<java.lang.String> getLanguageProperty()
getLanguageProperty in interface PackagePropertiesPackageProperties.getLanguageProperty()public Nullable<java.lang.String> getLastModifiedByProperty()
getLastModifiedByProperty in interface PackagePropertiesPackageProperties.getLastModifiedByProperty()public Nullable<java.util.Date> getLastPrintedProperty()
getLastPrintedProperty in interface PackagePropertiesPackageProperties.getLastPrintedProperty()public java.lang.String getLastPrintedPropertyString()
public Nullable<java.util.Date> getModifiedProperty()
getModifiedProperty in interface PackagePropertiesPackageProperties.getModifiedProperty()public java.lang.String getModifiedPropertyString()
public Nullable<java.lang.String> getRevisionProperty()
getRevisionProperty in interface PackagePropertiesPackageProperties.getRevisionProperty()public Nullable<java.lang.String> getSubjectProperty()
getSubjectProperty in interface PackagePropertiesPackageProperties.getSubjectProperty()public Nullable<java.lang.String> getTitleProperty()
getTitleProperty in interface PackagePropertiesPackageProperties.getTitleProperty()public Nullable<java.lang.String> getVersionProperty()
getVersionProperty in interface PackagePropertiesPackageProperties.getVersionProperty()public void setCategoryProperty(java.lang.String category)
setCategoryProperty in interface PackagePropertiesPackageProperties.setCategoryProperty(java.lang.String)public void setContentStatusProperty(java.lang.String contentStatus)
setContentStatusProperty in interface PackagePropertiesPackageProperties.setContentStatusProperty(java.lang.String)public void setContentTypeProperty(java.lang.String contentType)
setContentTypeProperty in interface PackagePropertiesPackageProperties.setContentTypeProperty(java.lang.String)public void setCreatedProperty(java.lang.String created)
setCreatedProperty in interface PackagePropertiesPackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)public void setCreatedProperty(Nullable<java.util.Date> created)
setCreatedProperty in interface PackagePropertiesPackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)public void setCreatorProperty(java.lang.String creator)
setCreatorProperty in interface PackagePropertiesPackageProperties.setCreatorProperty(java.lang.String)public void setDescriptionProperty(java.lang.String description)
setDescriptionProperty in interface PackagePropertiesPackageProperties.setDescriptionProperty(java.lang.String)public void setIdentifierProperty(java.lang.String identifier)
setIdentifierProperty in interface PackagePropertiesPackageProperties.setIdentifierProperty(java.lang.String)public void setKeywordsProperty(java.lang.String keywords)
setKeywordsProperty in interface PackagePropertiesPackageProperties.setKeywordsProperty(java.lang.String)public void setLanguageProperty(java.lang.String language)
setLanguageProperty in interface PackagePropertiesPackageProperties.setLanguageProperty(java.lang.String)public void setLastModifiedByProperty(java.lang.String lastModifiedBy)
setLastModifiedByProperty in interface PackagePropertiesPackageProperties.setLastModifiedByProperty(java.lang.String)public void setLastPrintedProperty(java.lang.String lastPrinted)
setLastPrintedProperty in interface PackagePropertiesPackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)public void setLastPrintedProperty(Nullable<java.util.Date> lastPrinted)
setLastPrintedProperty in interface PackagePropertiesPackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)public void setModifiedProperty(java.lang.String modified)
setModifiedProperty in interface PackagePropertiesPackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)public void setModifiedProperty(Nullable<java.util.Date> modified)
setModifiedProperty in interface PackagePropertiesPackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)public void setRevisionProperty(java.lang.String revision)
setRevisionProperty in interface PackagePropertiesPackageProperties.setRevisionProperty(java.lang.String)public void setSubjectProperty(java.lang.String subject)
setSubjectProperty in interface PackagePropertiesPackageProperties.setSubjectProperty(java.lang.String)public void setTitleProperty(java.lang.String title)
setTitleProperty in interface PackagePropertiesPackageProperties.setTitleProperty(java.lang.String)public void setVersionProperty(java.lang.String version)
setVersionProperty in interface PackagePropertiesPackageProperties.setVersionProperty(java.lang.String)protected java.io.InputStream getInputStreamImpl()
PackagePart
getInputStreamImpl in class PackagePartprotected java.io.OutputStream getOutputStreamImpl()
PackagePart
getOutputStreamImpl in class PackagePartpublic boolean save(java.io.OutputStream zos)
PackagePart
save in class PackagePartzos - Output stream to save this part.public boolean load(java.io.InputStream ios)
PackagePart
load in class PackagePartios - The input stream of the content to load.
public void close()
PackagePart
close in class PackagePartpublic void flush()
PackagePart
flush in class PackagePart
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||