]> source.dussan.org Git - poi.git/commitdiff
I don't remember but I'm sure it was something
authorAndrew C. Oliver <acoliver@apache.org>
Thu, 21 Mar 2002 00:49:36 +0000 (00:49 +0000)
committerAndrew C. Oliver <acoliver@apache.org>
Thu, 21 Mar 2002 00:49:36 +0000 (00:49 +0000)
PR:
Obtained from:
Submitted by:
Reviewed by:

git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@352258 13f79535-47bb-0310-9956-ffa450edef68

src/types/styles/hdftype.xsl

index de07f12f907ea8697a10e97ca4b218be08db5696..95a173348ac346f3ba0a83cce58e1831d5cec039 100644 (file)
@@ -68,6 +68,7 @@ import org.apache.poi.util.BitField;
 import org.apache.poi.util.LittleEndian;
 import org.apache.poi.util.StringUtil;
 import org.apache.poi.util.HexDump;
+import org.apache.poi.hdf.model.hdftypes.HDFType;
 
 /**
  * <xsl:value-of select="/record/description"/>
@@ -91,48 +92,6 @@ public class <xsl:value-of select="@name"/>Type
 </xsl:if></xsl:for-each>
     }
 
-    /**
-     * Constructs a <xsl:value-of select="@name"/> record and sets its fields appropriately.
-     *
-     * @param id    id must be <xsl:value-of select="@id"/> or an exception
-     *              will be throw upon validation
-     * @param size  size the size of the data area of the record
-     * @param data  data of the record (should not contain sid/len)
-     */
-
-    public <xsl:value-of select="@name"/>Type(short id, short size, byte [] data)
-    {
-        super(id, size, data);
-    }
-
-    /**
-     * Constructs a <xsl:value-of select="@name"/> record and sets its fields appropriately.
-     *
-     * @param id    id must be <xsl:value-of select="@id"/> or an exception
-     *              will be throw upon validation
-     * @param size  size the size of the data area of the record
-     * @param data  data of the record (should not contain sid/len)
-     * @param offset of the record's data
-     */
-
-    public <xsl:value-of select="@name"/>Type(short id, short size, byte [] data, int offset)
-    {
-        super(id, size, data, offset);
-    }
-
-    /**
-     * Checks the sid matches the expected side for this record
-     *
-     * @param id   the expected sid.
-     */
-    protected void validateSid(short id)
-    {
-        if (id != sid)
-        {
-            throw new HDFTypeFormatException(&quot;Not a <xsl:value-of select="@name"/> record&quot;);
-        }
-    }
-
     protected void fillFields(byte [] data, short size, int offset)
     {
 <xsl:variable name="fieldIterator" select="field:new()"/>