Package loci.poi.ddf
Class EscherMetafileBlip
java.lang.Object
loci.poi.ddf.EscherRecord
loci.poi.ddf.EscherBlipRecord
loci.poi.ddf.EscherMetafileBlip
- Version:
- $Id$
- Author:
- Daniel Noll
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final shortstatic final shortstatic final shortFields inherited from class loci.poi.ddf.EscherBlipRecord
field_pictureData, RECORD_DESCRIPTION, RECORD_ID_END, RECORD_ID_START -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfillFields(byte[] data, int offset, EscherRecordFactory recordFactory) This method deserializes the record from a byte array.intintReturns the number of bytes that are required to serialize this record.byte[]getUID()intbooleanintserialize(int offset, byte[] data, EscherSerializationListener listener) Serializes the record to an existing byte array.voidvoidsetCompressed(boolean compressed) voidsetCompressedSize(int compressedSize) voidsetSizeEMU(Dimension sizeEMU) voidsetUID(byte[] field_1_UID) voidsetUncompressedSize(int uncompressedSize) toString()Methods inherited from class loci.poi.ddf.EscherBlipRecord
getPicturedata, getRecordName, setPictureDataMethods inherited from class loci.poi.ddf.EscherRecord
clone, display, fillFields, getChild, getChildRecords, getInstance, getOptions, getRecordId, isContainerRecord, readHeader, serialize, serialize, setChildRecords, setOptions, setRecordId
-
Field Details
-
RECORD_ID_EMF
public static final short RECORD_ID_EMF- See Also:
-
RECORD_ID_WMF
public static final short RECORD_ID_WMF- See Also:
-
RECORD_ID_PICT
public static final short RECORD_ID_PICT- See Also:
-
-
Constructor Details
-
EscherMetafileBlip
public EscherMetafileBlip()
-
-
Method Details
-
fillFields
This method deserializes the record from a byte array.- Overrides:
fillFieldsin classEscherBlipRecord- Parameters:
data- The byte array containing the escher record informationoffset- The starting offset intodata.recordFactory- May be null since this is not a container record.- Returns:
- The number of bytes read from the byte array.
-
serialize
Serializes the record to an existing byte array.- Overrides:
serializein classEscherBlipRecord- Parameters:
offset- the offset within the byte arraydata- the data array to serialize tolistener- a listener for begin and end serialization events. This is useful because the serialization is hierarchical/recursive and sometimes you need to be able break into that.- Returns:
- the number of bytes written.
-
getRecordSize
public int getRecordSize()Returns the number of bytes that are required to serialize this record.- Overrides:
getRecordSizein classEscherBlipRecord- Returns:
- Number of bytes
-
getUID
public byte[] getUID() -
setUID
public void setUID(byte[] field_1_UID) -
getUncompressedSize
public int getUncompressedSize() -
setUncompressedSize
public void setUncompressedSize(int uncompressedSize) -
getBounds
-
setBounds
-
getSizeEMU
-
setSizeEMU
-
getCompressedSize
public int getCompressedSize() -
setCompressedSize
public void setCompressedSize(int compressedSize) -
isCompressed
public boolean isCompressed() -
setCompressed
public void setCompressed(boolean compressed) -
toString
- Overrides:
toStringin classEscherBlipRecord
-