Package org.apache.poi.ss.usermodel
Interface PictureData
-
- All Known Implementing Classes:
HSSFPictureData
,XSSFPictureData
public interface PictureData
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description byte[]
getData()
Gets the picture data.java.lang.String
getMimeType()
Returns the mime type for the imageint
getPictureType()
java.lang.String
suggestFileExtension()
Suggests a file extension for this image.
-
-
-
Method Detail
-
getData
byte[] getData()
Gets the picture data.- Returns:
- the picture data.
-
suggestFileExtension
java.lang.String suggestFileExtension()
Suggests a file extension for this image.- Returns:
- the file extension, without a leading
.
. Nevernull
, but will be empty if the extension is unknown or if the file backing these data does not have an extension.
-
getMimeType
java.lang.String getMimeType()
Returns the mime type for the image
-
getPictureType
int getPictureType()
- Returns:
- 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
-
-