org.apache.poi.ss.usermodel
Interface PictureData

All Known Implementing Classes:
HSSFPictureData

public interface PictureData


Method Summary
 byte[] getData()
          Gets the picture data.
 java.lang.String getMimeType()
          Returns the mime type for the image
 int 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.

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