|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.poi.hslf.usermodel.PictureData
public class PictureData
A class that represents the image data contained in the Presentation.
Field Summary | |
---|---|
protected byte[] |
header
Header which holds information about this picture |
static int |
HEADER_SIZE
The size of the header |
protected static int |
JPEG_HEADER
|
protected byte[] |
pictdata
Binary data of the picture |
protected static int |
PNG_HEADER
|
Constructor Summary | |
---|---|
PictureData()
|
|
PictureData(byte[] pictstream,
int offset)
Read a picture from "Pictures" OLE stream |
Method Summary | |
---|---|
static byte[] |
getChecksum(byte[] data)
Compute 16-byte checksum of this picture |
byte[] |
getData()
|
byte[] |
getHeader()
Returns the header of the Picture |
int |
getSize()
Return image size in bytes |
int |
getType()
Returns type of this picture. |
byte[] |
getUID()
Returns the unique identifier (UID) of this picture. |
void |
setData(byte[] data)
Set picture data |
void |
setType(int format)
Set the type of this picture. |
void |
setUID(byte[] uid)
Set the unique identifier (UID) of this picture. |
void |
write(java.io.OutputStream out)
Write this picture into OutputStream |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int HEADER_SIZE
protected static final int JPEG_HEADER
protected static final int PNG_HEADER
protected byte[] pictdata
protected byte[] header
Constructor Detail |
---|
public PictureData()
public PictureData(byte[] pictstream, int offset)
pictstream
- the bytes to readoffset
- the index of the first byte to readMethod Detail |
---|
public byte[] getData()
public void setData(byte[] data)
public int getSize()
public byte[] getUID()
public void setUID(byte[] uid)
uid
- checksum of the picture datapublic void setType(int format)
public int getType()
Picture class.
- Returns:
- type of this picture.
public byte[] getHeader()
public static byte[] getChecksum(byte[] data)
public void write(java.io.OutputStream out) throws java.io.IOException
OutputStream
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |