Top Description Fields Constructors Methods
org.apache.poi.ss.extractor

public Class EmbeddedData

extends Object
Class Inheritance
Imports
org.apache.poi.ss.usermodel.Shape

A collection of embedded object informations and content

Field Summary

Modifier and TypeField and Description
private String
private byte[]
private String
private Shape

Constructor Summary

AccessConstructor and Description
public
EmbeddedData(String filename, byte[] embeddedData, String contentType)

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

the content-/mime-type of the embedded object, the default (if unknown) is binary/octet-stream
getContentType
()

public byte[]

Returns:

the embedded object byte array
getEmbeddedData
()

public String

Returns:

the filename
getFilename
()

public Shape

Returns:

the shape which links to the embedded object
getShape
()

public void
setContentType(String
the content-type
contentType
)

Sets the content-/mime-type

public void
setEmbeddedData(byte[]
the embedded object byte array
embeddedData
)

Sets the embedded object as byte array

public void
setFilename(String
the filename
filename
)

Sets the filename

public void
setShape(Shape
the shape
shape
)

Sets the shape which links to the embedded object

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

contentTypeback to summary
private String contentType
embeddedDataback to summary
private byte[] embeddedData
filenameback to summary
private String filename
shapeback to summary
private Shape shape

Constructor Detail

EmbeddedDataback to summary
public EmbeddedData(String filename, byte[] embeddedData, String contentType)

Method Detail

getContentTypeback to summary
public String getContentType()
Returns:String

the content-/mime-type of the embedded object, the default (if unknown) is binary/octet-stream

getEmbeddedDataback to summary
public byte[] getEmbeddedData()
Returns:byte[]

the embedded object byte array

getFilenameback to summary
public String getFilename()
Returns:String

the filename

getShapeback to summary
public Shape getShape()
Returns:Shape

the shape which links to the embedded object

setContentTypeback to summary
public void setContentType(String contentType)

Sets the content-/mime-type

Parameters
contentType:String

the content-type

setEmbeddedDataback to summary
public void setEmbeddedData(byte[] embeddedData)

Sets the embedded object as byte array

Parameters
embeddedData:byte[]

the embedded object byte array

setFilenameback to summary
public void setFilename(String filename)

Sets the filename

Parameters
filename:String

the filename

setShapeback to summary
public void setShape(Shape shape)

Sets the shape which links to the embedded object

Parameters
shape:Shape

the shape