package org.apache.poi.hwpf.model;
-import org.apache.poi.util.LittleEndian;
-
-import org.apache.poi.hwpf.usermodel.ParagraphProperties;
import org.apache.poi.hwpf.sprm.ParagraphSprmUncompressor;
import org.apache.poi.hwpf.sprm.SprmBuffer;
import org.apache.poi.hwpf.sprm.SprmOperation;
+import org.apache.poi.hwpf.usermodel.ParagraphProperties;
+import org.apache.poi.util.LittleEndian;
/**
* DANGER - works in bytes!
}
return false;
}
+
+ public String toString()
+ {
+ return "PAPX from " + getStart() + " to " + getEnd() + " (in bytes "
+ + getStartBytes() + " to " + getEndBytes() + ")";
+ }
}
return retVal;
}
+ @Override
+ public String toString()
+ {
+ return toString( true );
+ }
+
+ public String toString( boolean withPapx )
+ {
+ return "Paragraph ("
+ + getStartOffset()
+ + "--"
+ + getEndOffset()
+ + ")"
+ + ( withPapx ? "\n"
+ + _props.toString().replaceAll( "\n", "\n\t" ) : "" );
+ }
}