@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, getStringBuffer
compareTo, getEnd, getStart, limitsAreEqual, setEnd, setStart
public 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 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
public OldTextPiece copy()
copy
in interface Duplicatable
copy
in class TextPiece
Copyright 2021 The Apache Software Foundation or its licensors, as applicable.