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 |
|---|---|
String |
getFullName()
Returns the full name of the embedded object,
e.g.
|
ObjectData |
getObjectData() |
PictureData |
getPictureData()
Returns the picture data for this picture.
|
String |
getProgId()
Returns the ProgID that stores the OLE Programmatic Identifier.
|
default 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 |
default InputStream |
readObjectDataRaw()
Convenience method to return the raw data as
InputStream |
OutputStream |
updateObjectData(ObjectMetaData.Application application,
ObjectMetaData metaData)
Updates the ole data.
|
draw, getAnchor, getParent, getShapeId, getShapeName, getSheetgetAnchor, getFlipHorizontal, getFlipVertical, getParent, getRotation, getSheet, setAnchor, setFlipHorizontal, setFlipVertical, setRotationPictureData getPictureData()
String getProgId()
String getFullName()
OutputStream updateObjectData(ObjectMetaData.Application application, ObjectMetaData metaData) throws IOException
For HSLF this needs to be a POIFSFileSystem stream.
application - a preset application enummetaData - or a custom metaData object, can be null if the application has been setOutputStream which receives the new data, the data will be persisted on close()IOException - if the linked object data couldn't be found or a new object data couldn't be initializeddefault InputStream readObjectData() throws IOException
raw data serves the outer/wrapped object, which is usually a
POIFSFileSystem stream, whereas this method return the unwrapped entryInputStream which serves the object dataIOException - if the linked object data couldn't be founddefault InputStream readObjectDataRaw() throws IOException
InputStreamIOException - if the data couldn't be retrievedObjectData getObjectData()
Copyright © 2010 - 2020 Adobe. All Rights Reserved