public class XSSFPivotCacheRecords extends POIXMLDocumentPart
DEFAULT_XML_OPTIONS
Modifier | Constructor | Description |
---|---|---|
|
XSSFPivotCacheRecords() |
|
protected |
XSSFPivotCacheRecords(PackagePart part,
PackageRelationship rel) |
Creates an XSSFPivotCacheRecords representing the given package part and relationship.
|
Modifier and Type | Method | Description |
---|---|---|
protected void |
commit() |
Save the content in the underlying package part.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPivotCacheRecords |
getCtPivotCacheRecords() |
|
protected void |
readFrom(java.io.InputStream is) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, toString
@Beta public XSSFPivotCacheRecords()
@Beta protected XSSFPivotCacheRecords(PackagePart part, PackageRelationship rel) throws java.io.IOException
part
- - The package part that holds xml data representing this pivot cache records.rel
- - the relationship of the given package part in the underlying OPC packagejava.io.IOException
@Beta protected void readFrom(java.io.InputStream is) throws java.io.IOException
java.io.IOException
@Beta @Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPivotCacheRecords getCtPivotCacheRecords()
@Beta protected void commit() throws java.io.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
java.io.IOException
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.