Top Methods
org.apache.poi.ss.usermodel

public Interface PictureData

Known Direct Implementers
org.apache.poi.hssf.usermodel.HSSFPictureData

Method Summary

Modifier and TypeMethod and Description
public byte[]

Returns:

the picture data.
getData
()

Gets the picture data.

public String
getMimeType()

Returns the mime type for the image

public int

Returns:

the POI internal image type, 0 if unknown image type
getPictureType
()

public String

Returns:

the file extension, without a leading .. Never null, but will be empty if the extension is unknown or if the file backing these data does not have an extension.
suggestFileExtension
()

Suggests a file extension for this image.

Method Detail

getDataback to summary
public byte[] getData()

Gets the picture data.

Returns:byte[]

the picture data.

getMimeTypeback to summary
public String getMimeType()

Returns the mime type for the image

getPictureTypeback to summary
public int getPictureType()
Returns:int

the POI internal image type, 0 if unknown image type

See Also
Workbook#PICTURE_TYPE_DIB, Workbook#PICTURE_TYPE_EMF, Workbook#PICTURE_TYPE_JPEG, Workbook#PICTURE_TYPE_PICT, Workbook#PICTURE_TYPE_PNG, Workbook#PICTURE_TYPE_WMF
suggestFileExtensionback to summary
public String suggestFileExtension()

Suggests a file extension for this image.

Returns:String

the file extension, without a leading .. Never null, but will be empty if the extension is unknown or if the file backing these data does not have an extension.