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 XSLFOleData from a package part
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getFileName()
java.io.InputStream
getInputStream()
Gets an input stream which returns the binary of the embedded data.java.lang.String
getOLE2ClassName()
java.io.OutputStream
getOutputStream()
void
setData(byte[] data)
-
Methods inherited from class org.apache.poi.ooxml.POIXMLDocumentPart
_invokeOnDocumentRead, addRelation, createRelationship, createRelationship, createRelationship, getPackagePart, getParent, getRelationById, getRelationId, getRelationPartById, getRelationParts, getRelations, isCommited, setCommited, toString
-
Methods inherited from class java.lang.Object
equals, 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 XSLFOleData from a package part- Parameters:
part
- the package part holding the ole data- Since:
- POI 3.14-Beta1
-
-
Method Detail
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
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:
java.io.IOException
-
getOutputStream
public java.io.OutputStream getOutputStream() throws java.io.IOException
- Specified by:
getOutputStream
in interfaceObjectData
- Returns:
- the object data as stream (for writing)
- Throws:
java.io.IOException
-
setData
public void setData(byte[] data) throws java.io.IOException
- Throws:
java.io.IOException
-
getOLE2ClassName
public java.lang.String getOLE2ClassName()
- Specified by:
getOLE2ClassName
in interfaceObjectData
- Returns:
- the OLE2 Class Name of the object
-
getFileName
public java.lang.String getFileName()
- Specified by:
getFileName
in interfaceObjectData
- Returns:
- a filename suggestion - inspecting/interpreting the Directory object probably gives a better result
-
-