@Beta public final class XSLFObjectData extends POIXMLDocumentPart implements ObjectData
POIXMLDocumentPart.RelationPart
Constructor and Description |
---|
XSLFObjectData(PackagePart part)
Construct XSLFObjectData from a package part
|
Modifier and Type | Method and 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() |
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.
(XSLFObjectData 对象直接将实际内容存储在部件中,而不像所有其他对象一样保留副本,因此我们需要以不同的方式处理它们。)
|
void |
setData(byte[] data) |
_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBytes, getDirectory, hasDirectoryEntry
public XSLFObjectData(PackagePart part)
part
- the package part holding the ole data
(part - 保存 ole 数据的包部分)
public java.io.InputStream getInputStream() throws java.io.IOException
ObjectData
getInputStream
in interface
ObjectData
(接口 ObjectData 中的 getInputStream)
java.io.IOException
(java.io.IOException)
public java.io.OutputStream getOutputStream()
getOutputStream
in interface
ObjectData
(接口 ObjectData 中的 getOutputStream)
protected void prepareForCommit()
prepareForCommit
in class
POIXMLDocumentPart
public void setData(byte[] data) throws java.io.IOException
java.io.IOException
(java.io.IOException)
public java.lang.String getOLE2ClassName()
getOLE2ClassName
in interface
ObjectData
(接口 ObjectData 中的 getOLE2ClassName)
public java.lang.String getFileName()
getFileName
in interface
ObjectData
(接口 ObjectData 中的 getFileName)
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.