mirror of
https://github.com/apache/poi.git
synced 2026-02-27 20:40:08 +08:00
Add a couple of methods to help make debugging problems in hwpf easier
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1024302 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
7e1d07ec00
commit
dc45d4ce75
@ -608,5 +608,8 @@ public final class CharacterRun
|
||||
return _props.getBrc();
|
||||
}
|
||||
|
||||
|
||||
public String toString() {
|
||||
String text = text();
|
||||
return "CharacterRun of " + text.length() + " characters - " + text;
|
||||
}
|
||||
}
|
||||
|
||||
@ -154,6 +154,14 @@ public final class Picture
|
||||
out.write(_dataStream, pictureBytesStartOffset, size);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return The offset of this picture in the picture bytes, used
|
||||
* when matching up with {@link CharacterRun#getPicOffset()}
|
||||
*/
|
||||
public int getStartOffset() {
|
||||
return dataBlockStartOfsset;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return picture's content as byte array
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user