Removed some unused stuff from our good friend the unknown record. Also fixed a little bug that probably wasn't effecting anyone.

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/branches/REL_2_BRANCH@353173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Glen Stampoultzis 2003-06-28 05:52:14 +00:00
parent 9dcb5587ea
commit 230c71eae7

View File

@ -65,16 +65,14 @@ import org.apache.poi.util.LittleEndian;
* Company: SuperLink Software, Inc.<P> * Company: SuperLink Software, Inc.<P>
* @author Andrew C. Oliver (acoliver at apache dot org) * @author Andrew C. Oliver (acoliver at apache dot org)
* @author Jason Height (jheight at chariot dot net dot au) * @author Jason Height (jheight at chariot dot net dot au)
* @version 2.0-pre * @author Glen Stampoultzis (glens at apache.org)
*/ */
public class UnknownRecord public class UnknownRecord
extends Record extends Record
{ {
private short sid = 0; private short sid = 0;
private short size = 0; private byte[] thedata = null;
private byte[] thedata = null;
int offset = 0;
public UnknownRecord() public UnknownRecord()
{ {
@ -91,7 +89,6 @@ public class UnknownRecord
public UnknownRecord(short id, short size, byte [] data) public UnknownRecord(short id, short size, byte [] data)
{ {
sid = id; sid = id;
size = size;
thedata = data; thedata = data;
} }
@ -127,7 +124,7 @@ public class UnknownRecord
protected void fillFields(byte [] data, short sid) protected void fillFields(byte [] data, short sid)
{ {
sid = sid; this.sid = sid;
thedata = data; thedata = data;
} }
@ -179,9 +176,7 @@ public class UnknownRecord
/** Unlike the other Record.clone methods this is a shallow clone*/ /** Unlike the other Record.clone methods this is a shallow clone*/
public Object clone() { public Object clone() {
UnknownRecord rec = new UnknownRecord(); UnknownRecord rec = new UnknownRecord();
rec.offset = offset;
rec.sid = sid; rec.sid = sid;
rec.size = size;
rec.thedata = thedata; rec.thedata = thedata;
return rec; return rec;
} }