Package org.apache.poi.xslf.usermodel
Class XSLFObjectData
java.lang.Object
org.apache.poi.ooxml.POIXMLDocumentPart
org.apache.poi.xslf.usermodel.XSLFObjectData
- All Implemented Interfaces:
ObjectData
An XSLFOleData instance holds the ole binary stream/object
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
POIXMLDocumentPart.RelationPart
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Create a new XSLFOleData nodeXSLFObjectData
(PackagePart part) Construct XSLFOleData from a package part -
Method Summary
Modifier and TypeMethodDescriptionGets an input stream which returns the binary of the embedded data.protected void
*PictureData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.void
setData
(byte[] data) Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, commit, createRelationship, createRelationship, createRelationship, getNextPartNumber, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, getTargetPart, isCommited, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, removeRelation, setCommited, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.apache.poi.sl.usermodel.ObjectData
getBytes, getDirectory, hasDirectoryEntry
-
Constructor Details
-
XSLFObjectData
protected XSLFObjectData()Create a new XSLFOleData node -
XSLFObjectData
Construct XSLFOleData from a package part- Parameters:
part
- the package part holding the ole data- Since:
- POI 3.14-Beta1
-
-
Method Details
-
getInputStream
Description copied from interface:ObjectData
Gets an input stream which returns the binary of the embedded data.- Specified by:
getInputStream
in interfaceObjectData
- Returns:
- the input stream which will contain the binary of the embedded data.
- Throws:
IOException
-
getOutputStream
- Specified by:
getOutputStream
in interfaceObjectData
- Returns:
- the object data as stream (for writing)
- Throws:
IOException
-
prepareForCommit
protected void prepareForCommit()*PictureData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.- Overrides:
prepareForCommit
in classPOIXMLDocumentPart
-
setData
- Throws:
IOException
-
getOLE2ClassName
- Specified by:
getOLE2ClassName
in interfaceObjectData
- Returns:
- the OLE2 Class Name of the object
-
getFileName
- Specified by:
getFileName
in interfaceObjectData
- Returns:
- a filename suggestion - inspecting/interpreting the Directory object probably gives a better result
-