mirror of https://github.com/apache/poi.git
should have been part of c723161 (re-arranging methods getRecordSize and getDataSize in Record / StandardRecord / ContinuableRecord hierarchy)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@723164 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dc9a894072
commit
e498812395
|
@ -141,8 +141,8 @@ public final class ObjRecord extends Record {
|
||||||
}
|
}
|
||||||
|
|
||||||
public int serialize(int offset, byte[] data) {
|
public int serialize(int offset, byte[] data) {
|
||||||
int dataSize = getDataSize();
|
int recSize = getRecordSize();
|
||||||
int recSize = 4 + dataSize;
|
int dataSize = recSize - 4;
|
||||||
LittleEndianByteArrayOutputStream out = new LittleEndianByteArrayOutputStream(data, offset, recSize);
|
LittleEndianByteArrayOutputStream out = new LittleEndianByteArrayOutputStream(data, offset, recSize);
|
||||||
|
|
||||||
out.writeShort(sid);
|
out.writeShort(sid);
|
||||||
|
|
Loading…
Reference in New Issue