Apply patch from bug #51293 from Sergey for hdf types generation

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1129693 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Nick Burch 2011-05-31 14:24:49 +00:00
parent f3b6cc03d4
commit 3e0b243605
1 changed files with 4 additions and 1 deletions

View File

@ -23,6 +23,8 @@
xmlns:field="org.apache.poi.hdf.generator.HDFFieldIterator"
xmlns:java="java" >
<xsl:output method="text"/>
<xsl:template match="record">
<xsl:if test="@package">
@ -74,6 +76,7 @@ public abstract class <xsl:value-of select="@name"/>AbstractType
<xsl:text> </xsl:text><xsl:value-of select="field:serialiseEncoder($fieldIterator,position(),@name,@size,@type)"/>;
</xsl:for-each>
}
</xsl:if>
public String toString()
{
@ -84,7 +87,7 @@ public abstract class <xsl:value-of select="@name"/>AbstractType
buffer.append("[/<xsl:value-of select="@name"/>]\n");
return buffer.toString();
}
</xsl:if>
/**
* Size of record (exluding 4 byte header)
*/