| java.lang.Object org.apache.poi.ddf.EscherRecord org.apache.poi.ddf.EscherBlipRecord org.apache.poi.ddf.EscherBlipWMFRecord
EscherBlipWMFRecord | public class EscherBlipWMFRecord extends EscherBlipRecord (Code) | | The blip record is used to hold details about large binary objects that occur in escher such
as JPEG, GIF, PICT and WMF files. The contents of the stream is usually compressed. Inflate
can be used to decompress the data.
author: Glen Stampoultzis See Also: java.util.zip.Inflater |
RECORD_DESCRIPTION | final public static String RECORD_DESCRIPTION(Code) | | |
decompress | public static byte[] decompress(byte[] data, int pos, int length)(Code) | | Decompresses a byte array.
Parameters: data - The compressed byte array Parameters: pos - The starting position into the byte array Parameters: length - The number of compressed bytes to decompress An uncompressed byte array See Also: InflaterInputStream.read |
fillFields | public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)(Code) | | This method deserializes the record from a byte array.
Parameters: data - The byte array containing the escher record information Parameters: offset - The starting offset into data . Parameters: recordFactory - May be null since this is not a container record. The number of bytes read from the byte array. |
getBoundaryHeight | public int getBoundaryHeight()(Code) | | Retrieve the boundary height of the metafile drawing commands
|
getBoundaryLeft | public int getBoundaryLeft()(Code) | | Retrieve the left boundary of the metafile drawing commands
|
getBoundaryTop | public int getBoundaryTop()(Code) | | Retrieve the top boundary of the metafile drawing commands
|
getBoundaryWidth | public int getBoundaryWidth()(Code) | | Retrieve the boundary width of the metafile drawing commands
|
getCacheOfSavedSize | public int getCacheOfSavedSize()(Code) | | Retrieve the cache of the saved size
|
getCacheOfSize | public int getCacheOfSize()(Code) | | Retrieve the cache of the metafile size
|
getCompressionFlag | public byte getCompressionFlag()(Code) | | Is the contents of the blip compressed?
|
getData | public byte[] getData()(Code) | | The BLIP data
|
getFilter | public byte getFilter()(Code) | | Filter should always be 0
|
getHeight | public int getHeight()(Code) | | Retrieve the height of the metafile in EMU's (English Metric Units).
|
getRecordName | public String getRecordName()(Code) | | The short name for this record
|
getRecordSize | public int getRecordSize()(Code) | | Returns the number of bytes that are required to serialize this record.
Number of bytes |
getSecondaryUID | public byte[] getSecondaryUID()(Code) | | Retrieve the secondary UID
|
getWidth | public int getWidth()(Code) | | Retrieve the width of the metafile in EMU's (English Metric Units).
|
serialize | public int serialize(int offset, byte[] data, EscherSerializationListener listener)(Code) | | This method serializes this escher record into a byte array.
Parameters: offset - The offset into data to start writing the record data to. Parameters: data - The byte array to serialize to. Parameters: listener - A listener to retrieve start and end callbacks. Use a NullEscherSerailizationListener to ignore these events. The number of bytes written. See Also: NullEscherSerializationListener |
setBoundaryHeight | public void setBoundaryHeight(int field_6_boundaryHeight)(Code) | | Set the boundary height of the metafile drawing commands
|
setBoundaryLeft | public void setBoundaryLeft(int field_4_boundaryLeft)(Code) | | Set the left boundary of the metafile drawing commands
|
setBoundaryTop | public void setBoundaryTop(int field_3_boundaryTop)(Code) | | Set the top boundary of the metafile drawing commands
|
setBoundaryWidth | public void setBoundaryWidth(int field_5_boundaryWidth)(Code) | | Set the boundary width of the metafile drawing commands
|
setCacheOfSavedSize | public void setCacheOfSavedSize(int field_9_cacheOfSavedSize)(Code) | | Set the cache of the saved size
|
setCacheOfSize | public void setCacheOfSize(int field_2_cacheOfSize)(Code) | | Set the cache of the metafile size
|
setCompressionFlag | public void setCompressionFlag(byte field_10_compressionFlag)(Code) | | Set whether the contents of the blip is compressed
|
setData | public void setData(byte[] field_12_data)(Code) | | The BLIP data
|
setFilter | public void setFilter(byte field_11_filter)(Code) | | Filter should always be 0
|
setHeight | public void setHeight(int height)(Code) | | Set the height of the metafile in EMU's (English Metric Units).
|
setSecondaryUID | public void setSecondaryUID(byte[] field_1_secondaryUID)(Code) | | Set the secondary UID
|
setWidth | public void setWidth(int width)(Code) | | Set the width of the metafile in EMU's (English Metric Units).
|
toString | public String toString()(Code) | | The string representation of this record.
A string |
|
|