public class XSSFPivotCacheDefinition extends POIXMLDocumentPart
DEFAULT_XML_OPTIONS
Modifier | Constructor and Description |
---|---|
|
XSSFPivotCacheDefinition() |
protected |
XSSFPivotCacheDefinition(PackagePart part,
PackageRelationship rel)
Creates an XSSFPivotCacheDefintion representing the given package part and relationship.
|
Modifier and Type | Method and Description |
---|---|
protected void |
commit()
Save the content in the underlying package part.
|
protected void |
createCacheFields(Sheet sheet)
Generates a cache field for each column in the reference area for the pivot table.
|
org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPivotCacheDefinition |
getCTPivotCacheDefinition() |
void |
readFrom(java.io.InputStream is) |
addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getPackageRelationship, getParent, getRelationById, getRelationId, getRelations, getTargetPart, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeRelation, removeRelation, toString
@Beta public XSSFPivotCacheDefinition()
@Beta protected XSSFPivotCacheDefinition(PackagePart part, PackageRelationship rel) throws java.io.IOException
part
- - The package part that holds xml data representing this pivot cache definition.rel
- - the relationship of the given package part in the underlying OPC packagejava.io.IOException
@Beta public void readFrom(java.io.InputStream is) throws java.io.IOException
java.io.IOException
@Beta @Internal public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTPivotCacheDefinition getCTPivotCacheDefinition()
@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 2015 The Apache Software Foundation or its licensors, as applicable.