@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, getStringBufferclone, compareTo, getEnd, getStart, limitsAreEqual, setEnd, setStartpublic 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 TextPiecepublic 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 TextPiecestart - The start position for the delete, in characterslength - The number of characters to deletepublic int bytesLength()
bytesLength in class TextPieceCopyright 2018 The Apache Software Foundation or its licensors, as applicable.