Added toString debug method to MemAreaPtg

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@761862 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Josh Micich 2009-04-04 02:53:08 +00:00
parent 93d7983560
commit 7b9803652a
1 changed files with 10 additions and 1 deletions

View File

@ -23,7 +23,7 @@ import org.apache.poi.util.LittleEndianOutput;
/**
* @author Daniel Noll (daniel at nuix dot com dot au)
*/
public class MemAreaPtg extends OperandPtg {
public final class MemAreaPtg extends OperandPtg {
public final static short sid = 0x26;
private final static int SIZE = 7;
private final int field_1_reserved;
@ -58,4 +58,13 @@ public class MemAreaPtg extends OperandPtg {
public byte getDefaultOperandClass() {
return Ptg.CLASS_VALUE;
}
@Override
public final String toString() {
StringBuffer sb = new StringBuffer(64);
sb.append(getClass().getName()).append(" [len=");
sb.append(field_2_subex_len);
sb.append("]");
return sb.toString();
}
}