Methods Summary |
---|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)
field_1_default_country = in.readShort();
field_2_current_country = in.readShort();
|
public short | getCurrentCountry()gets the current country
return field_2_current_country;
|
public short | getDefaultCountry()gets the default country
return field_1_default_country;
|
public int | getRecordSize()
return 8;
|
public short | getSid()
return sid;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, 0 + offset, sid);
LittleEndian.putShort(data, 2 + offset,
(( short ) 0x04)); // 4 bytes (8 total)
LittleEndian.putShort(data, 4 + offset, getDefaultCountry());
LittleEndian.putShort(data, 6 + offset, getCurrentCountry());
return getRecordSize();
|
public void | setCurrentCountry(short country)sets the current country
field_2_current_country = country;
|
public void | setDefaultCountry(short country)sets the default country
field_1_default_country = country;
|
public java.lang.String | toString()
StringBuffer buffer = new StringBuffer();
buffer.append("[COUNTRY]\n");
buffer.append(" .defaultcountry = ")
.append(Integer.toHexString(getDefaultCountry())).append("\n");
buffer.append(" .currentcountry = ")
.append(Integer.toHexString(getCurrentCountry())).append("\n");
buffer.append("[/COUNTRY]\n");
return buffer.toString();
|
protected void | validateSid(short id)
if (id != sid)
{
throw new RecordFormatException("NOT A Country RECORD");
}
|