|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.poi.hssf.usermodel.HSSFPictureData
public class HSSFPictureData
Represents binary data stored in the file. Eg. A GIF, JPEG etc...
Field Summary | |
---|---|
static short |
FORMAT_MASK
|
static short |
MSOBI_DIB
|
static short |
MSOBI_EMF
|
static short |
MSOBI_JPEG
|
static short |
MSOBI_PICT
|
static short |
MSOBI_PNG
|
static short |
MSOBI_WMF
|
Constructor Summary | |
---|---|
HSSFPictureData(EscherBlipRecord blip)
Constructs a picture object. |
Method Summary | |
---|---|
byte[] |
getData()
Gets the picture data. |
int |
getFormat()
|
java.lang.String |
getMimeType()
Returns the mime type for the image |
int |
getPictureType()
|
java.lang.String |
suggestFileExtension()
Suggests a file extension for this image. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short MSOBI_WMF
public static final short MSOBI_EMF
public static final short MSOBI_PICT
public static final short MSOBI_PNG
public static final short MSOBI_JPEG
public static final short MSOBI_DIB
public static final short FORMAT_MASK
Constructor Detail |
---|
public HSSFPictureData(EscherBlipRecord blip)
blip
- the underlying blip record containing the bitmap data.Method Detail |
---|
public byte[] getData()
PictureData
getData
in interface PictureData
public int getFormat()
Workbook.PICTURE_TYPE_DIB
,
Workbook.PICTURE_TYPE_WMF
,
Workbook.PICTURE_TYPE_EMF
,
Workbook.PICTURE_TYPE_PNG
,
Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PICT
public java.lang.String suggestFileExtension()
PictureData
suggestFileExtension
in interface PictureData
null
getFormat()
public java.lang.String getMimeType()
getMimeType
in interface PictureData
public int getPictureType()
getPictureType
in interface PictureData
Workbook.PICTURE_TYPE_DIB
,
Workbook.PICTURE_TYPE_EMF
,
Workbook.PICTURE_TYPE_JPEG
,
Workbook.PICTURE_TYPE_PICT
,
Workbook.PICTURE_TYPE_PNG
,
Workbook.PICTURE_TYPE_WMF
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |