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
@Beta public final class XSLFObjectData extends POIXMLDocumentPart implements 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
Constructors Constructor Description XSLFObjectData(PackagePart part)Construct XSLFObjectData from a package part
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileName()InputStreamgetInputStream()StringgetOLE2ClassName()OutputStreamgetOutputStream()protected voidprepareForCommit()XSLFObjectData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.voidsetData(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, isCommitted, onDocumentCreate, onDocumentRead, onDocumentRemove, onSave, read, rebase, removeRelation, removeRelation, removeRelation, setCommitted, 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 Detail
-
XSLFObjectData
public XSLFObjectData(PackagePart part)
Construct XSLFObjectData from a package part- Parameters:
part- the package part holding the ole data- Since:
- POI 3.14-Beta1
-
-
Method Detail
-
getInputStream
public InputStream getInputStream() throws IOException
- Specified by:
getInputStreamin interfaceObjectData- Throws:
IOException
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceObjectData- Throws:
IOException
-
prepareForCommit
protected void prepareForCommit()
XSLFObjectData objects store the actual content in the part directly without keeping a copy like all others therefore we need to handle them differently.- Overrides:
prepareForCommitin classPOIXMLDocumentPart
-
setData
public void setData(byte[] data) throws IOException- Throws:
IOException
-
getOLE2ClassName
public String getOLE2ClassName()
- Specified by:
getOLE2ClassNamein interfaceObjectData
-
getFileName
public String getFileName()
- Specified by:
getFileNamein interfaceObjectData
-
-