Methods Summary |
---|
public java.lang.Object | clone()
AxisUsedRecord rec = new AxisUsedRecord();
rec.field_1_numAxis = field_1_numAxis;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_numAxis = in.readShort();
|
public short | getNumAxis()Get the num axis field for the AxisUsed record.
return field_1_numAxis;
|
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_numAxis);
return getRecordSize();
|
public void | setNumAxis(short field_1_numAxis)Set the num axis field for the AxisUsed record.
this.field_1_numAxis = field_1_numAxis;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[AXISUSED]\n");
buffer.append(" .numAxis = ")
.append("0x").append(HexDump.toHex( getNumAxis ()))
.append(" (").append( getNumAxis() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/AXISUSED]\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 AxisUsed record");
}
|