public class XSSFPivotCacheRecords extends POIXMLDocumentPart implements Serializable
DEFAULT_XML_OPTIONS
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
Save the content in the underlying package part.
|
protected void |
onDocumentCreate()
Fired when a new package part is created
|
protected void |
onDocumentRead()
Fired when a package part is read
|
String |
toString() |
addRelation, clearMemoryPackagePart, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationCounter, getRelationId, getRelations, getTargetPart, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation
protected void onDocumentCreate()
POIXMLDocumentPart
onDocumentCreate
in class POIXMLDocumentPart
protected void onDocumentRead() throws IOException
POIXMLDocumentPart
onDocumentRead
in class POIXMLDocumentPart
IOException
protected void commit() throws IOException
POIXMLDocumentPart
protected void commit() throws IOException {
PackagePart part = getPackagePart();
OutputStream out = part.getOutputStream();
XmlObject bean = getXmlBean(); //the "model" which holds changes in memory
bean.save(out, DEFAULT_XML_OPTIONS);
out.close();
}
commit
in class POIXMLDocumentPart
IOException
public String toString()
toString
in class POIXMLDocumentPart
Copyright © 2020. All rights reserved.