aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorYegor Kozlov <yegor@apache.org>2012-01-17 06:53:45 +0000
committerYegor Kozlov <yegor@apache.org>2012-01-17 06:53:45 +0000
commit013ba86bb066ec9ddc30caa90c616baac5ffaa4b (patch)
treea08e9b92ebd3302bfc66df1955e9174ed477639d /src
parent797ff02699ee7b976e05e203812ff7ae852be66c (diff)
downloadpoi-013ba86bb066ec9ddc30caa90c616baac5ffaa4b.tar.gz
poi-013ba86bb066ec9ddc30caa90c616baac5ffaa4b.zip
corrected javadoc for StandardRecord#serialize(LittleEndianOutput out) as reported in poi-dev
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1232321 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src')
-rw-r--r--src/java/org/apache/poi/hssf/record/StandardRecord.java22
1 files changed, 16 insertions, 6 deletions
diff --git a/src/java/org/apache/poi/hssf/record/StandardRecord.java b/src/java/org/apache/poi/hssf/record/StandardRecord.java
index 347578c872..bb492c05f7 100644
--- a/src/java/org/apache/poi/hssf/record/StandardRecord.java
+++ b/src/java/org/apache/poi/hssf/record/StandardRecord.java
@@ -31,6 +31,13 @@ public abstract class StandardRecord extends Record {
public final int getRecordSize() {
return 4 + getDataSize();
}
+
+ /**
+ * Write the data content of this BIFF record including the sid and record length.<br/>
+ *
+ * The subclass must write the exact number of bytes as reported by
+ * {@link org.apache.poi.hssf.record.Record#getRecordSize()}}
+ */
@Override
public final int serialize(int offset, byte[] data) {
int dataSize = getDataSize();
@@ -47,11 +54,14 @@ public abstract class StandardRecord extends Record {
return recSize;
}
- /**
- * Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields
- * have already been written by the superclass.<br/>
- *
- * The subclass must write the exact number of bytes as reported by {@link org.apache.poi.hssf.record.Record#getRecordSize()}}
- */
+ /**
+ * Write the data content of this BIFF record. The 'ushort sid' and 'ushort size' header fields
+ * have already been written by the superclass.<br/>
+ *
+ * The number of bytes written must equal the record size reported by
+ * {@link org.apache.poi.hssf.record.Record#getRecordSize()}} minus four
+ * ( record header consiting of a 'ushort sid' and 'ushort reclength' has already been written
+ * by thye superclass).
+ */
protected abstract void serialize(LittleEndianOutput out);
}