public interface ObjectShape<S extends Shape<S,P>,P extends TextParagraph<S,P,? extends TextRun>> extends Shape<S,P>, PlaceableShape<S,P>
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFullName()
Returns the full name of the embedded object, e.g.
(返回嵌入对象的全名,例如)
|
ObjectData |
getObjectData() |
PictureData |
getPictureData()
Returns the picture data for this picture.
(返回此图片的图片数据。)
|
java.lang.String |
getProgId()
Returns the ProgID that stores the OLE Programmatic Identifier.
(返回存储 OLE 编程标识符的 ProgID。)
|
default java.io.InputStream |
readObjectData()
Reads the ole data as stream - the application specific stream is served The
raw data serves the outer/wrapped object, which is usually a
POIFSFileSystem stream, whereas this method return the unwrapped entry
(将 ole 数据作为流读取 - 为应用程序特定的流提供服务原始数据为外部/包装对象提供服务,该对象通常是 POIFSFileSystem 流,而此方法返回未包装的条目)
|
default java.io.InputStream |
readObjectDataRaw()
Convenience method to return the raw data as
InputStream
(将原始数据作为 InputStream 返回的便捷方法)
|
java.io.OutputStream |
updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData)
Updates the ole data.
(更新 ole 数据。)
|
draw, getAnchor, getParent, getShapeId, getShapeName, getSheet
getAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotation
PictureData getPictureData()
java.lang.String getProgId()
java.lang.String getFullName()
java.io.OutputStream updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData) throws java.io.IOException
For HSLF this needs to be a POIFSFileSystem
stream.
application
- a preset application enum
(application - 一个预设的应用程序枚举)
metaData
- or a custom metaData object, can be
null
if the application has been set
(metaData - 或自定义 metaData 对象,如果应用程序已设置,则可以为 null)
OutputStream
which receives the new data, the data will be persisted on
close()
(一个接收新数据的 OutputStream,数据将在 close() 上持久化)
java.io.IOException
- if the linked object data couldn't be found or a new object data couldn't be initialized
(java.io.IOException - 如果找不到链接的对象数据或无法初始化新的对象数据)
default java.io.InputStream readObjectData() throws java.io.IOException
raw data
serves the outer/wrapped object, which is usually a
POIFSFileSystem
stream, whereas this method return the unwrapped entry
(将 ole 数据作为流读取 - 为应用程序特定的流提供服务原始数据为外部/包装对象提供服务,该对象通常是 POIFSFileSystem 流,而此方法返回未包装的条目)
InputStream
which serves the object data
(提供对象数据的 InputStream)
java.io.IOException
- if the linked object data couldn't be found
(java.io.IOException - 如果找不到链接的对象数据)
default java.io.InputStream readObjectDataRaw() throws java.io.IOException
InputStream
(将原始数据作为 InputStream 返回的便捷方法)
java.io.IOException
- if the data couldn't be retrieved
(java.io.IOException - 如果无法检索数据)
ObjectData getObjectData()
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.