Package org.apache.poi.ss.extractor
Class EmbeddedData
java.lang.Object
org.apache.poi.ss.extractor.EmbeddedData
A collection of embedded object informations and content
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getShape()
void
setContentType
(String contentType) Sets the content-/mime-typevoid
setEmbeddedData
(byte[] embeddedData) Sets the embedded object as byte arrayvoid
setFilename
(String filename) Sets the filenamevoid
Sets the shape which links to the embedded object
-
Constructor Details
-
EmbeddedData
-
-
Method Details
-
getFilename
- Returns:
- the filename
-
setFilename
Sets the filename- Parameters:
filename
- the filename
-
getEmbeddedData
public byte[] getEmbeddedData()- Returns:
- the embedded object byte array
-
setEmbeddedData
public void setEmbeddedData(byte[] embeddedData) Sets the embedded object as byte array- Parameters:
embeddedData
- the embedded object byte array
-
getShape
- Returns:
- the shape which links to the embedded object
-
setShape
Sets the shape which links to the embedded object- Parameters:
shape
- the shape
-
getContentType
- Returns:
- the content-/mime-type of the embedded object, the default (if unknown) is
binary/octet-stream
-
setContentType
Sets the content-/mime-type- Parameters:
contentType
- the content-type
-