Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_addMenuCount = in.readByte();
field_2_delMenuCount = in.readByte();
|
public byte | getAddMenuCount()get number of add menu options (should be 0)
return field_1_addMenuCount;
|
public byte | getDelMenuCount()get number of add del options (should be 0)
return field_2_delMenuCount;
|
public int | getRecordSize()
return 6;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset,
(( short ) 0x02)); // 2 bytes (6 total)
data[ 4 + offset ] = getAddMenuCount();
data[ 5 + offset ] = getDelMenuCount();
return getRecordSize();
|
public void | setAddMenuCount(byte am)set number of add menu options (set to 0)
field_1_addMenuCount = am;
|
public void | setDelMenuCount(byte dm)set number of del menu options (set to 0)
field_2_delMenuCount = dm;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[MMS]\n");
buffer.append(" .addMenu = ")
.append(Integer.toHexString(getAddMenuCount())).append("\n");
buffer.append(" .delMenu = ")
.append(Integer.toHexString(getDelMenuCount())).append("\n");
buffer.append("[/MMS]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A MMS RECORD");
}
|