Methods Summary |
---|
public java.lang.Object | clone()Clone this record.
ContinueRecord clone = new ContinueRecord();
clone.setData(field_1_data);
return clone;
|
protected void | fillFields(org.apache.poi.hssf.record.RecordInputStream in)Fill the fields. Only thing is, this record has no fields --
field_1_data = in.readRemainder();
|
public byte[] | getData()get the data for continuation
return field_1_data;
|
public short | getSid()
return sid;
|
public byte[] | serialize()USE ONLY within "processContinue"
byte[] retval = new byte[ field_1_data.length + 4 ];
serialize(0, retval);
return retval;
|
public int | serialize(int offset, byte[] data)
LittleEndian.putShort(data, offset, sid);
LittleEndian.putShort(data, offset + 2, ( short ) field_1_data.length);
System.arraycopy(field_1_data, 0, data, offset + 4, field_1_data.length);
return field_1_data.length + 4;
// throw new RecordFormatException(
// "You're not supposed to serialize Continue records like this directly");
|
public void | setData(byte[] data)set the data for continuation
field_1_data = data;
|
public java.lang.String | toString()Debugging toString
StringBuffer buffer = new StringBuffer();
buffer.append("[CONTINUE RECORD]\n");
buffer.append(" .id = ").append(Integer.toHexString(sid))
.append("\n");
buffer.append("[/CONTINUE RECORD]\n");
return buffer.toString();
|
protected void | validateSid(short id)Make sure we have a good id
if (id != ContinueRecord.sid)
{
throw new RecordFormatException("Not a Continue Record");
}
|