I don't remember but I'm sure it was something
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
This commit is contained in:
parent
f22bb9f428
commit
7c64962203
@ -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("Not a <xsl:value-of select="@name"/> record");
|
||||
}
|
||||
}
|
||||
|
||||
protected void fillFields(byte [] data, short size, int offset)
|
||||
{
|
||||
<xsl:variable name="fieldIterator" select="field:new()"/>
|
||||
|
Loading…
Reference in New Issue
Block a user