Package org.apache.poi.xdgf.usermodel
Class XmlVisioDocument
java.lang.Object
org.apache.poi.ooxml.POIXMLDocumentPart
org.apache.poi.ooxml.POIXMLDocument
org.apache.poi.xdgf.usermodel.XmlVisioDocument
- All Implemented Interfaces:
Closeable,AutoCloseable
This is your high-level starting point for working with Visio XML
documents (.vsdx).
Currently, only read support has been implemented, and the API is
not mature and is subject to change.
For more information about the visio XML format (with an XSD 1.0
schema), you can find documentation at
https://msdn.microsoft.com/en-us/library/hh645006(v=office.12).aspx
That document lacks in some areas, but you can find additional
documentation and an updated XSD 1.1 schema at
https://msdn.microsoft.com/en-us/library/office/jj684209(v=office.15).aspx
Each provides different details, but the SharePoint reference
has better documentation and is more useful.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected XDGFDocumentprotected XDGFMastersprotected XDGFPagesFields inherited from class org.apache.poi.ooxml.POIXMLDocument
DOCUMENT_CREATOR, OLE_OBJECT_REL_TYPE, PACK_OBJECT_REL_TYPE -
Constructor Summary
ConstructorsConstructorDescriptionXmlVisioDocument(InputStream stream) XmlVisioDocument(InputStream stream, boolean closeStream) Construct a VisioDocument from the given OPCPackage -
Method Summary
Modifier and TypeMethodDescriptionNot currently implementedgetPages()getStyleById(long id) protected voidFired when a package part is readMethods inherited from class org.apache.poi.ooxml.POIXMLDocument
close, getCorePart, getPackage, getProperties, getRelatedByType, load, openPackage, writeMethods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, commit, createHyperlink, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getReferenceRelationship, getReferenceRelationships, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommitted, onDocumentCreate, onDocumentRemove, onSave, prepareForCommit, read, rebase, removeReferenceRelationship, removeRelation, removeRelation, removeRelation, setCommitted, toString
-
Field Details
-
_pages
-
_masters
-
_document
-
-
Constructor Details
-
XmlVisioDocument
Construct a VisioDocument from the given OPCPackage- Parameters:
pkg- The xml-base input for the Visio document- Throws:
IOException- If parsing the document fails
-
XmlVisioDocument
- Parameters:
stream- InputStream - closed when it is read- Throws:
IOException- If parsing the document fails
-
XmlVisioDocument
- Parameters:
stream- InputStreamcloseStream- Whether to close the InputStream- Throws:
IOException- If parsing the document fails- Since:
- 5.2.5
-
-
Method Details
-
onDocumentRead
protected void onDocumentRead()Description copied from class:POIXMLDocumentPartFired when a package part is read- Overrides:
onDocumentReadin classPOIXMLDocumentPart
-
getAllEmbeddedParts
Not currently implemented- Specified by:
getAllEmbeddedPartsin classPOIXMLDocument- Returns:
- the document's embedded files
-
getPages
- Returns:
- pages ordered by page number
-
getStyleById
-