Methods Summary |
---|
public java.lang.Object | clone()
FontIndexRecord rec = new FontIndexRecord();
rec.field_1_fontIndex = field_1_fontIndex;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_fontIndex = in.readShort();
|
public short | getFontIndex()Get the font index field for the FontIndex record.
return field_1_fontIndex;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
int pos = 0;
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset, (short)(getRecordSize() - 4));
LittleEndian.putShort(data, 4 + offset + pos, field_1_fontIndex);
return getRecordSize();
|
public void | setFontIndex(short field_1_fontIndex)Set the font index field for the FontIndex record.
this.field_1_fontIndex = field_1_fontIndex;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[FONTX]\n");
buffer.append(" .fontIndex = ")
.append("0x").append(HexDump.toHex( getFontIndex ()))
.append(" (").append( getFontIndex() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/FONTX]\n");
return buffer.toString();
|
protected void | validateSid(short id)Checks the sid matches the expected side for this record
if (id != sid)
{
throw new RecordFormatException("Not a FontIndex record");
}
|