Methods Summary |
---|
public java.lang.Object | clone()
AxisRecord rec = new AxisRecord();
rec.field_1_axisType = field_1_axisType;
rec.field_2_reserved1 = field_2_reserved1;
rec.field_3_reserved2 = field_3_reserved2;
rec.field_4_reserved3 = field_4_reserved3;
rec.field_5_reserved4 = field_5_reserved4;
return rec;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_axisType = in.readShort();
field_2_reserved1 = in.readInt();
field_3_reserved2 = in.readInt();
field_4_reserved3 = in.readInt();
field_5_reserved4 = in.readInt();
|
public short | getAxisType()Get the axis type field for the Axis record.
return field_1_axisType;
|
public int | getRecordSize()Size of record (exluding 4 byte header)
return 4 + 2 + 4 + 4 + 4 + 4;
|
public int | getReserved1()Get the reserved1 field for the Axis record.
return field_2_reserved1;
|
public int | getReserved2()Get the reserved2 field for the Axis record.
return field_3_reserved2;
|
public int | getReserved3()Get the reserved3 field for the Axis record.
return field_4_reserved3;
|
public int | getReserved4()Get the reserved4 field for the Axis record.
return field_5_reserved4;
|
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_axisType);
LittleEndian.putInt(data, 6 + offset + pos, field_2_reserved1);
LittleEndian.putInt(data, 10 + offset + pos, field_3_reserved2);
LittleEndian.putInt(data, 14 + offset + pos, field_4_reserved3);
LittleEndian.putInt(data, 18 + offset + pos, field_5_reserved4);
return getRecordSize();
|
public void | setAxisType(short field_1_axisType)Set the axis type field for the Axis record.
this.field_1_axisType = field_1_axisType;
|
public void | setReserved1(int field_2_reserved1)Set the reserved1 field for the Axis record.
this.field_2_reserved1 = field_2_reserved1;
|
public void | setReserved2(int field_3_reserved2)Set the reserved2 field for the Axis record.
this.field_3_reserved2 = field_3_reserved2;
|
public void | setReserved3(int field_4_reserved3)Set the reserved3 field for the Axis record.
this.field_4_reserved3 = field_4_reserved3;
|
public void | setReserved4(int field_5_reserved4)Set the reserved4 field for the Axis record.
this.field_5_reserved4 = field_5_reserved4;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[AXIS]\n");
buffer.append(" .axisType = ")
.append("0x").append(HexDump.toHex( getAxisType ()))
.append(" (").append( getAxisType() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .reserved1 = ")
.append("0x").append(HexDump.toHex( getReserved1 ()))
.append(" (").append( getReserved1() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .reserved2 = ")
.append("0x").append(HexDump.toHex( getReserved2 ()))
.append(" (").append( getReserved2() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .reserved3 = ")
.append("0x").append(HexDump.toHex( getReserved3 ()))
.append(" (").append( getReserved3() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append(" .reserved4 = ")
.append("0x").append(HexDump.toHex( getReserved4 ()))
.append(" (").append( getReserved4() ).append(" )");
buffer.append(System.getProperty("line.separator"));
buffer.append("[/AXIS]\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 Axis record");
}
|