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:
Said Ryan Ackley 2004-03-04 04:31:16 +00:00
parent 57ccc70b2e
commit bf13664a25
2 changed files with 8 additions and 1 deletions

View File

@ -8,7 +8,7 @@ public class GenericPropertyNode
super(start, end, buf);
}
protected byte[] getBytes()
public byte[] getBytes()
{
return (byte[])_buf;
}

View File

@ -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))