trying to bring textmining.org up to sync
git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353532 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57ccc70b2e
commit
bf13664a25
@ -8,7 +8,7 @@ public class GenericPropertyNode
|
||||
super(start, end, buf);
|
||||
}
|
||||
|
||||
protected byte[] getBytes()
|
||||
public byte[] getBytes()
|
||||
{
|
||||
return (byte[])_buf;
|
||||
}
|
||||
|
@ -116,6 +116,13 @@ public class TextPiece extends PropertyNode implements Comparable
|
||||
|
||||
}
|
||||
|
||||
public String substring(int start, int end)
|
||||
{
|
||||
int denominator = _usesUnicode ? 2 : 1;
|
||||
|
||||
return ((StringBuffer)_buf).substring(start/denominator, end/denominator);
|
||||
}
|
||||
|
||||
public boolean equals(Object o)
|
||||
{
|
||||
if (limitsAreEqual(o))
|
||||
|
Loading…
Reference in New Issue
Block a user