@Internal public class OldTextPiece extends TextPiece
_buf, EndComparator, StartComparator| Constructor and Description |
|---|
OldTextPiece(int start,
int end,
byte[] text,
PieceDescriptor pd) |
OldTextPiece(OldTextPiece other) |
| Modifier and Type | Method and Description |
|---|---|
void |
adjustForDelete(int start,
int length)
Deprecated.
|
int |
bytesLength()
Returns the length, in bytes
|
OldTextPiece |
copy() |
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(OldTextPiece other)
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 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 TextPiecepublic OldTextPiece copy()
copy in interface Duplicatablecopy in class TextPieceCopyright 2020 The Apache Software Foundation or its licensors, as applicable.