@Internal public class OldTextPiece extends TextPiece
PropertyNode.EndComparator, PropertyNode.StartComparator
_buf
Constructor and Description |
---|
OldTextPiece(int start,
int end,
byte[] text,
PieceDescriptor pd) |
Modifier and Type | Method and Description |
---|---|
void |
adjustForDelete(int start,
int length)
Deprecated.
|
int |
bytesLength()
Returns the length, in bytes
|
boolean |
equals(java.lang.Object other) |
byte[] |
getRawBytes() |
java.lang.StringBuilder |
getStringBuilder() |
int |
hashCode() |
boolean |
isUnicode() |
java.lang.String |
substring(int start,
int end)
Deprecated.
|
java.lang.String |
toString() |
characterLength, getCP, getPieceDescriptor, getStringBuffer
clone, compareTo, getEnd, getStart, limitsAreEqual, setEnd, setStart
public OldTextPiece(int start, int end, byte[] text, PieceDescriptor pd)
start
- Beginning offset in main document stream, in characters.end
- Ending offset in main document stream, in characters.text
- The raw bytes of our text@NotImplemented public boolean isUnicode()
public java.lang.StringBuilder getStringBuilder()
getStringBuilder
in class TextPiece
public byte[] getRawBytes()
getRawBytes
in class TextPiece
@Deprecated @NotImplemented public java.lang.String substring(int start, int end)
@Deprecated @NotImplemented public void adjustForDelete(int start, int length)
adjustForDelete
in class TextPiece
start
- The start position for the delete, in characterslength
- The number of characters to deletepublic int bytesLength()
bytesLength
in class TextPiece
Copyright 2018 The Apache Software Foundation or its licensors, as applicable.