|
||||||||||
| 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 | |
|---|---|
static java.lang.String |
NAMESPACE_CP_URI
|
static java.lang.String |
NAMESPACE_DC_URI
|
static java.lang.String |
NAMESPACE_DCTERMS_URI
|
static java.lang.String |
NAMESPACE_XSI_URI
|
| 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 |
getCategoryProperty()
Get the category property. |
Nullable |
getContentStatusProperty()
Get content status. |
Nullable |
getContentTypeProperty()
Get content type. |
Nullable |
getCreatedProperty()
Get created date. |
java.lang.String |
getCreatedPropertyString()
Get created date formated into a String. |
Nullable |
getCreatorProperty()
Get creator. |
Nullable |
getDescriptionProperty()
Get description. |
Nullable |
getIdentifierProperty()
Get identifier. |
Nullable |
getKeywordsProperty()
Get keywords. |
Nullable |
getLanguageProperty()
Get the language. |
Nullable |
getLastModifiedByProperty()
Get the author of last modifications. |
Nullable |
getLastPrintedProperty()
Get last printed date. |
java.lang.String |
getLastPrintedPropertyString()
Get last printed date formated into a String. |
Nullable |
getModifiedProperty()
Get modified date. |
java.lang.String |
getModifiedPropertyString()
Get modified date formated into a String. |
Nullable |
getRevisionProperty()
Get revision. |
Nullable |
getSubjectProperty()
Get subject. |
Nullable |
getTitleProperty()
Get title. |
Nullable |
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 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 lastPrinted)
Set last printed date. |
void |
setLastPrintedProperty(java.lang.String lastPrinted)
Set last printed date. |
void |
setModifiedProperty(Nullable 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, clearRelationships, getContentType, getInputStream, getOutputStream, getPackage, getPartName, getRelatedPart, getRelationship, getRelationships, getRelationshipsByType, hasRelationships, isDeleted, isRelationshipExists, isRelationshipPart, removeRelationship, setContentType, setDeleted, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, 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
public static final java.lang.String NAMESPACE_XSI_URI
| 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 getCategoryProperty()
getCategoryProperty in interface PackagePropertiesPackageProperties.getCategoryProperty()public Nullable getContentStatusProperty()
getContentStatusProperty in interface PackagePropertiesPackageProperties.getContentStatusProperty()public Nullable getContentTypeProperty()
getContentTypeProperty in interface PackagePropertiesPackageProperties.getContentTypeProperty()public Nullable getCreatedProperty()
getCreatedProperty in interface PackagePropertiesPackageProperties.getCreatedProperty()public java.lang.String getCreatedPropertyString()
public Nullable getCreatorProperty()
getCreatorProperty in interface PackagePropertiesPackageProperties.getCreatorProperty()public Nullable getDescriptionProperty()
getDescriptionProperty in interface PackagePropertiesPackageProperties.getDescriptionProperty()public Nullable getIdentifierProperty()
getIdentifierProperty in interface PackagePropertiesPackageProperties.getIdentifierProperty()public Nullable getKeywordsProperty()
getKeywordsProperty in interface PackagePropertiesPackageProperties.getKeywordsProperty()public Nullable getLanguageProperty()
getLanguageProperty in interface PackagePropertiesPackageProperties.getLanguageProperty()public Nullable getLastModifiedByProperty()
getLastModifiedByProperty in interface PackagePropertiesPackageProperties.getLastModifiedByProperty()public Nullable getLastPrintedProperty()
getLastPrintedProperty in interface PackagePropertiesPackageProperties.getLastPrintedProperty()public java.lang.String getLastPrintedPropertyString()
public Nullable getModifiedProperty()
getModifiedProperty in interface PackagePropertiesPackageProperties.getModifiedProperty()public java.lang.String getModifiedPropertyString()
public Nullable getRevisionProperty()
getRevisionProperty in interface PackagePropertiesPackageProperties.getRevisionProperty()public Nullable getSubjectProperty()
getSubjectProperty in interface PackagePropertiesPackageProperties.getSubjectProperty()public Nullable getTitleProperty()
getTitleProperty in interface PackagePropertiesPackageProperties.getTitleProperty()public Nullable 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 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 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 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)public 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 | |||||||||