|
||||||||||
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, 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 PackageProperties
PackageProperties.getCategoryProperty()
public Nullable getContentStatusProperty()
getContentStatusProperty
in interface PackageProperties
PackageProperties.getContentStatusProperty()
public Nullable getContentTypeProperty()
getContentTypeProperty
in interface PackageProperties
PackageProperties.getContentTypeProperty()
public Nullable getCreatedProperty()
getCreatedProperty
in interface PackageProperties
PackageProperties.getCreatedProperty()
public java.lang.String getCreatedPropertyString()
public Nullable getCreatorProperty()
getCreatorProperty
in interface PackageProperties
PackageProperties.getCreatorProperty()
public Nullable getDescriptionProperty()
getDescriptionProperty
in interface PackageProperties
PackageProperties.getDescriptionProperty()
public Nullable getIdentifierProperty()
getIdentifierProperty
in interface PackageProperties
PackageProperties.getIdentifierProperty()
public Nullable getKeywordsProperty()
getKeywordsProperty
in interface PackageProperties
PackageProperties.getKeywordsProperty()
public Nullable getLanguageProperty()
getLanguageProperty
in interface PackageProperties
PackageProperties.getLanguageProperty()
public Nullable getLastModifiedByProperty()
getLastModifiedByProperty
in interface PackageProperties
PackageProperties.getLastModifiedByProperty()
public Nullable getLastPrintedProperty()
getLastPrintedProperty
in interface PackageProperties
PackageProperties.getLastPrintedProperty()
public java.lang.String getLastPrintedPropertyString()
public Nullable getModifiedProperty()
getModifiedProperty
in interface PackageProperties
PackageProperties.getModifiedProperty()
public java.lang.String getModifiedPropertyString()
public Nullable getRevisionProperty()
getRevisionProperty
in interface PackageProperties
PackageProperties.getRevisionProperty()
public Nullable getSubjectProperty()
getSubjectProperty
in interface PackageProperties
PackageProperties.getSubjectProperty()
public Nullable getTitleProperty()
getTitleProperty
in interface PackageProperties
PackageProperties.getTitleProperty()
public Nullable getVersionProperty()
getVersionProperty
in interface PackageProperties
PackageProperties.getVersionProperty()
public void setCategoryProperty(java.lang.String category)
setCategoryProperty
in interface PackageProperties
PackageProperties.setCategoryProperty(java.lang.String)
public void setContentStatusProperty(java.lang.String contentStatus)
setContentStatusProperty
in interface PackageProperties
PackageProperties.setContentStatusProperty(java.lang.String)
public void setContentTypeProperty(java.lang.String contentType)
setContentTypeProperty
in interface PackageProperties
PackageProperties.setContentTypeProperty(java.lang.String)
public void setCreatedProperty(java.lang.String created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setCreatedProperty(Nullable created)
setCreatedProperty
in interface PackageProperties
PackageProperties.setCreatedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setCreatorProperty(java.lang.String creator)
setCreatorProperty
in interface PackageProperties
PackageProperties.setCreatorProperty(java.lang.String)
public void setDescriptionProperty(java.lang.String description)
setDescriptionProperty
in interface PackageProperties
PackageProperties.setDescriptionProperty(java.lang.String)
public void setIdentifierProperty(java.lang.String identifier)
setIdentifierProperty
in interface PackageProperties
PackageProperties.setIdentifierProperty(java.lang.String)
public void setKeywordsProperty(java.lang.String keywords)
setKeywordsProperty
in interface PackageProperties
PackageProperties.setKeywordsProperty(java.lang.String)
public void setLanguageProperty(java.lang.String language)
setLanguageProperty
in interface PackageProperties
PackageProperties.setLanguageProperty(java.lang.String)
public void setLastModifiedByProperty(java.lang.String lastModifiedBy)
setLastModifiedByProperty
in interface PackageProperties
PackageProperties.setLastModifiedByProperty(java.lang.String)
public void setLastPrintedProperty(java.lang.String lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setLastPrintedProperty(Nullable lastPrinted)
setLastPrintedProperty
in interface PackageProperties
PackageProperties.setLastPrintedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setModifiedProperty(java.lang.String modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setModifiedProperty(Nullable modified)
setModifiedProperty
in interface PackageProperties
PackageProperties.setModifiedProperty(org.apache.poi.openxml4j.util.Nullable)
public void setRevisionProperty(java.lang.String revision)
setRevisionProperty
in interface PackageProperties
PackageProperties.setRevisionProperty(java.lang.String)
public void setSubjectProperty(java.lang.String subject)
setSubjectProperty
in interface PackageProperties
PackageProperties.setSubjectProperty(java.lang.String)
public void setTitleProperty(java.lang.String title)
setTitleProperty
in interface PackageProperties
PackageProperties.setTitleProperty(java.lang.String)
public void setVersionProperty(java.lang.String version)
setVersionProperty
in interface PackageProperties
PackageProperties.setVersionProperty(java.lang.String)
public boolean save(java.io.OutputStream zos)
PackagePart
save
in class PackagePart
zos
- Output stream to save this part.public boolean load(java.io.InputStream ios)
PackagePart
load
in class PackagePart
ios
- The input stream of the content to load.
public void close()
PackagePart
close
in class PackagePart
public void flush()
PackagePart
flush
in class PackagePart
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |