Package org.apache.poi.xssf.model
Class ExternalLinksTable
java.lang.Object
org.apache.poi.ooxml.POIXMLDocumentPart
org.apache.poi.xssf.model.ExternalLinksTable
Holds details of links to parts of other workbooks (eg named ranges),
along with the most recently seen values for what they point to.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprotected voidcommit()Save the content in the underlying package part.org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExternalLinkDeprecated, for removal: This API element is subject to removal in a future version.will be removed because we don't want to expose this (future implementations may not be XMLBeans based)Returns the last recorded name of the file that this is linked tovoidreadFrom(InputStream is) voidsetLinkedFileName(String target) Updates the last recorded name for the file that this links tovoidwriteTo(OutputStream out) Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createHyperlink, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getReferenceRelationship, getReferenceRelationships, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeReferenceRelationship, removeRelation, removeRelation, removeRelation, setCommitted, toString
-
Constructor Details
-
ExternalLinksTable
public ExternalLinksTable() -
ExternalLinksTable
- Throws:
IOException- Since:
- 3.14-Beta1
-
-
Method Details
-
readFrom
- Throws:
IOException
-
writeTo
- Throws:
IOException
-
commit
Description copied from class:POIXMLDocumentPartSave the content in the underlying package part. Default implementation is empty meaning that the package part is left unmodified.Sub-classes should override and add logic to marshal the "model" into Ooxml4J.
For example, the code saving a generic XML entry may look as follows:
protected void commit() throws IOException { PackagePart part = getPackagePart(); try (OutputStream out = part.getOutputStream()) { XmlObject bean = getXmlBean(); //the "model" which holds changes in memory bean.save(out, DEFAULT_XML_OPTIONS); } }- Overrides:
commitin classPOIXMLDocumentPart- Throws:
IOException- a subclass may throw an IOException if the changes can't be committed
-
getCTExternalLink
@Internal @Removal(version="6.0.0") @Deprecated(forRemoval=true) public org.openxmlformats.schemas.spreadsheetml.x2006.main.CTExternalLink getCTExternalLink()Deprecated, for removal: This API element is subject to removal in a future version.will be removed because we don't want to expose this (future implementations may not be XMLBeans based)Returns the underlying xmlbeans object for the external link table. Internal use only. Not currently used internally. -
getLinkedFileName
Returns the last recorded name of the file that this is linked to -
setLinkedFileName
Updates the last recorded name for the file that this links to -
getSheetNames
-
getDefinedNames
-
cacheData
-