public class EscherBlipWMFRecord extends EscherBlipRecord
InflaterEscherRecord.EscherRecordHeader| Modifier and Type | Field and Description |
|---|---|
private byte[] |
field_1_secondaryUID |
private byte |
field_10_compressionFlag |
private byte |
field_11_filter |
private byte[] |
field_12_data |
private int |
field_2_cacheOfSize |
private int |
field_3_boundaryTop |
private int |
field_4_boundaryLeft |
private int |
field_5_boundaryWidth |
private int |
field_6_boundaryHeight |
private int |
field_7_width |
private int |
field_8_height |
private int |
field_9_cacheOfSavedSize |
private static int |
HEADER_SIZE |
static String |
RECORD_DESCRIPTION |
field_pictureData, RECORD_ID_END, RECORD_ID_START| Constructor and Description |
|---|
EscherBlipWMFRecord() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
compress(byte[] data)
Compress the contents of the provided array
|
static byte[] |
decompress(byte[] data,
int pos,
int length)
Decompresses a byte array.
|
int |
fillFields(byte[] data,
int offset,
EscherRecordFactory recordFactory)
This method deserializes the record from a byte array.
|
int |
getBoundaryHeight()
Retrieve the boundary height of the metafile drawing commands
|
int |
getBoundaryLeft()
Retrieve the left boundary of the metafile drawing commands
|
int |
getBoundaryTop()
Retrieve the top boundary of the metafile drawing commands
|
int |
getBoundaryWidth()
Retrieve the boundary width of the metafile drawing commands
|
int |
getCacheOfSavedSize()
Retrieve the cache of the saved size
|
int |
getCacheOfSize()
Retrieve the cache of the metafile size
|
byte |
getCompressionFlag()
Is the contents of the blip compressed?
|
byte[] |
getData()
The BLIP data
|
byte |
getFilter()
Filter should always be 0
|
int |
getHeight()
Retrieve the height of the metafile in EMU's (English Metric Units).
|
String |
getRecordName()
The short name for this record
|
int |
getRecordSize()
Returns the number of bytes that are required to serialize this record.
|
byte[] |
getSecondaryUID()
Retrieve the secondary UID
|
int |
getWidth()
Retrieve the width of the metafile in EMU's (English Metric Units).
|
int |
serialize(int offset,
byte[] data,
EscherSerializationListener listener)
This method serializes this escher record into a byte array.
|
void |
setBoundaryHeight(int field_6_boundaryHeight)
Set the boundary height of the metafile drawing commands
|
void |
setBoundaryLeft(int field_4_boundaryLeft)
Set the left boundary of the metafile drawing commands
|
void |
setBoundaryTop(int field_3_boundaryTop)
Set the top boundary of the metafile drawing commands
|
void |
setBoundaryWidth(int field_5_boundaryWidth)
Set the boundary width of the metafile drawing commands
|
void |
setCacheOfSavedSize(int field_9_cacheOfSavedSize)
Set the cache of the saved size
|
void |
setCacheOfSize(int field_2_cacheOfSize)
Set the cache of the metafile size
|
void |
setCompressionFlag(byte field_10_compressionFlag)
Set whether the contents of the blip is compressed
|
void |
setData(byte[] field_12_data)
The BLIP data
|
void |
setFilter(byte field_11_filter)
Filter should always be 0
|
void |
setHeight(int height)
Set the height of the metafile in EMU's (English Metric Units).
|
void |
setSecondaryUID(byte[] field_1_secondaryUID)
Set the secondary UID
|
void |
setWidth(int width)
Set the width of the metafile in EMU's (English Metric Units).
|
String |
toString()
The string representation of this record.
|
getPicturedata, setPictureDataclone, display, fillFields, getChild, getChildRecords, getInstance, getOptions, getRecordId, isContainerRecord, readHeader, serialize, serialize, setChildRecords, setOptions, setRecordIdpublic static final String RECORD_DESCRIPTION
private static final int HEADER_SIZE
private byte[] field_1_secondaryUID
private int field_2_cacheOfSize
private int field_3_boundaryTop
private int field_4_boundaryLeft
private int field_5_boundaryWidth
private int field_6_boundaryHeight
private int field_7_width
private int field_8_height
private int field_9_cacheOfSavedSize
private byte field_10_compressionFlag
private byte field_11_filter
private byte[] field_12_data
public int fillFields(byte[] data,
int offset,
EscherRecordFactory recordFactory)
fillFields in class EscherBlipRecorddata - The byte array containing the escher record informationoffset - The starting offset into data.recordFactory - May be null since this is not a container record.public int serialize(int offset,
byte[] data,
EscherSerializationListener listener)
serialize in class EscherBlipRecordoffset - The offset into data to start writing the record data to.data - The byte array to serialize to.listener - A listener to retrieve start and end callbacks. Use a NullEscherSerailizationListener to ignore these events.NullEscherSerializationListenerpublic int getRecordSize()
getRecordSize in class EscherBlipRecordpublic String getRecordName()
getRecordName in class EscherBlipRecordpublic byte[] getSecondaryUID()
public void setSecondaryUID(byte[] field_1_secondaryUID)
public int getCacheOfSize()
public void setCacheOfSize(int field_2_cacheOfSize)
public int getBoundaryTop()
public void setBoundaryTop(int field_3_boundaryTop)
public int getBoundaryLeft()
public void setBoundaryLeft(int field_4_boundaryLeft)
public int getBoundaryWidth()
public void setBoundaryWidth(int field_5_boundaryWidth)
public int getBoundaryHeight()
public void setBoundaryHeight(int field_6_boundaryHeight)
public int getWidth()
public void setWidth(int width)
public int getHeight()
public void setHeight(int height)
public int getCacheOfSavedSize()
public void setCacheOfSavedSize(int field_9_cacheOfSavedSize)
public byte getCompressionFlag()
public void setCompressionFlag(byte field_10_compressionFlag)
public byte getFilter()
public void setFilter(byte field_11_filter)
public byte[] getData()
public void setData(byte[] field_12_data)
public String toString()
toString in class EscherBlipRecordpublic static byte[] compress(byte[] data)
data - An uncompressed byte arrayDeflaterOutputStream.write(int b)public static byte[] decompress(byte[] data,
int pos,
int length)
data - The compressed byte arraypos - The starting position into the byte arraylength - The number of compressed bytes to decompressInflaterInputStream.read()Copyright © 2015 Open Microscopy Environment