public class EscherBSERecord extends EscherRecord
EscherBlipRecord
and stores
extra information about the blip. A blip record is actually stored inside
the BSE record even though the BSE record isn't actually a container record.EscherBlipRecord
EscherRecord.EscherRecordHeader
Modifier and Type | Field and Description |
---|---|
static byte |
BT_DIB |
static byte |
BT_EMF |
static byte |
BT_ERROR |
static byte |
BT_JPEG |
static byte |
BT_PICT |
static byte |
BT_PNG |
static byte |
BT_UNKNOWN |
static byte |
BT_WMF |
private byte |
field_1_blipTypeWin32 |
private byte |
field_10_unused2 |
private byte |
field_11_unused3 |
private EscherBlipRecord |
field_12_blipRecord |
private byte |
field_2_blipTypeMacOS |
private byte[] |
field_3_uid |
private short |
field_4_tag |
private int |
field_5_size |
private int |
field_6_ref |
private int |
field_7_offset |
private byte |
field_8_usage |
private byte |
field_9_name |
static String |
RECORD_DESCRIPTION |
static short |
RECORD_ID |
private byte[] |
remainingData |
Constructor and Description |
---|
EscherBSERecord() |
Modifier and Type | Method and Description |
---|---|
int |
fillFields(byte[] data,
int offset,
EscherRecordFactory recordFactory)
This method deserializes the record from a byte array.
|
EscherBlipRecord |
getBlipRecord() |
String |
getBlipType(byte b)
Retrieve the string representation given a blip id.
|
byte |
getBlipTypeMacOS()
The expected blip type under MacOS (failure to match this blip type will result in
Excel converting to this format).
|
byte |
getBlipTypeWin32()
The expected blip type under windows (failure to match this blip type will result in
Excel converting to this format).
|
byte |
getName()
The length in characters of the blip name.
|
int |
getOffset()
File offset in the delay stream.
|
String |
getRecordName()
The short name for this record
|
int |
getRecordSize()
Returns the number of bytes that are required to serialize this record.
|
int |
getRef()
The reference count of this blip.
|
byte[] |
getRemainingData()
Any remaining data in this record.
|
int |
getSize()
Blip size in stream.
|
short |
getTag()
unused
|
byte[] |
getUid()
16 byte MD4 checksum.
|
byte |
getUnused2() |
byte |
getUnused3() |
byte |
getUsage()
Defines the way this blip is used.
|
int |
serialize(int offset,
byte[] data,
EscherSerializationListener listener)
This method serializes this escher record into a byte array.
|
void |
setBlipRecord(EscherBlipRecord field_12_blipRecord) |
void |
setBlipTypeMacOS(byte blipTypeMacOS)
Set the expected MacOS blip type
|
void |
setBlipTypeWin32(byte blipTypeWin32)
Set the expected win32 blip type
|
void |
setName(byte name)
The length in characters of the blip name.
|
void |
setOffset(int offset)
File offset in the delay stream.
|
void |
setRef(int ref)
The reference count of this blip.
|
void |
setRemainingData(byte[] remainingData)
Any remaining data in this record.
|
void |
setSize(int size)
Blip size in stream.
|
void |
setTag(short tag)
unused
|
void |
setUid(byte[] uid)
16 byte MD4 checksum.
|
void |
setUnused2(byte unused2) |
void |
setUnused3(byte unused3) |
void |
setUsage(byte usage)
Defines the way this blip is used.
|
String |
toString()
Calculate the string representation of this object
|
clone, display, fillFields, getChild, getChildRecords, getInstance, getOptions, getRecordId, isContainerRecord, readHeader, serialize, serialize, setChildRecords, setOptions, setRecordId
public static final short RECORD_ID
public static final String RECORD_DESCRIPTION
public static final byte BT_ERROR
public static final byte BT_UNKNOWN
public static final byte BT_EMF
public static final byte BT_WMF
public static final byte BT_PICT
public static final byte BT_JPEG
public static final byte BT_PNG
public static final byte BT_DIB
private byte field_1_blipTypeWin32
private byte field_2_blipTypeMacOS
private byte[] field_3_uid
private short field_4_tag
private int field_5_size
private int field_6_ref
private int field_7_offset
private byte field_8_usage
private byte field_9_name
private byte field_10_unused2
private byte field_11_unused3
private EscherBlipRecord field_12_blipRecord
private byte[] remainingData
public int fillFields(byte[] data, int offset, EscherRecordFactory recordFactory)
fillFields
in class EscherRecord
data
- 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 EscherRecord
offset
- 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.NullEscherSerializationListener
public int getRecordSize()
getRecordSize
in class EscherRecord
public String getRecordName()
getRecordName
in class EscherRecord
public byte getBlipTypeWin32()
public void setBlipTypeWin32(byte blipTypeWin32)
public byte getBlipTypeMacOS()
public void setBlipTypeMacOS(byte blipTypeMacOS)
public byte[] getUid()
public void setUid(byte[] uid)
public short getTag()
public void setTag(short tag)
public int getSize()
public void setSize(int size)
public int getRef()
public void setRef(int ref)
public int getOffset()
public void setOffset(int offset)
public byte getUsage()
public void setUsage(byte usage)
public byte getName()
public void setName(byte name)
public byte getUnused2()
public void setUnused2(byte unused2)
public byte getUnused3()
public void setUnused3(byte unused3)
public EscherBlipRecord getBlipRecord()
public void setBlipRecord(EscherBlipRecord field_12_blipRecord)
public byte[] getRemainingData()
public void setRemainingData(byte[] remainingData)
public String toString()
public String getBlipType(byte b)
Copyright © 2016 Open Microscopy Environment