@Internal public class TextPiece extends PropertyNode<TextPiece>
PropertyNode.EndComparator, PropertyNode.StartComparator
_buf
Constructor and Description |
---|
TextPiece(int start,
int end,
byte[] text,
PieceDescriptor pd) |
TextPiece(int start,
int end,
byte[] text,
PieceDescriptor pd,
int cpStart)
Deprecated.
Use
TextPiece(int,int,byte[],PieceDescriptor)
instead |
Modifier and Type | Method and Description |
---|---|
void |
adjustForDelete(int start,
int length)
Deprecated.
|
int |
bytesLength()
Returns the length, in bytes
|
int |
characterLength()
Deprecated.
|
boolean |
equals(Object o) |
int |
getCP()
Returns the character position we start at.
|
PieceDescriptor |
getPieceDescriptor() |
byte[] |
getRawBytes() |
StringBuffer |
getStringBuffer()
Deprecated.
|
StringBuilder |
getStringBuilder() |
boolean |
isUnicode() |
String |
substring(int start,
int end)
Deprecated.
|
String |
toString() |
clone, compareTo, getEnd, getStart, hashCode, limitsAreEqual, setEnd, setStart
public TextPiece(int start, int end, byte[] text, PieceDescriptor pd, int cpStart)
TextPiece(int,int,byte[],PieceDescriptor)
insteadstart
- Beginning offset in main document stream, in characters.end
- Ending offset in main document stream, in characters.text
- The raw bytes of our textpublic TextPiece(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 textpublic boolean isUnicode()
public PieceDescriptor getPieceDescriptor()
@Deprecated public StringBuffer getStringBuffer()
public StringBuilder getStringBuilder()
public byte[] getRawBytes()
@Deprecated public String substring(int start, int end)
start
- Local start position, in charactersend
- Local end position, in characters@Deprecated public void adjustForDelete(int start, int length)
adjustForDelete
in class PropertyNode<TextPiece>
start
- The start position for the delete, in characterslength
- The number of characters to delete@Deprecated public int characterLength()
public int bytesLength()
public boolean equals(Object o)
equals
in class PropertyNode<TextPiece>
public int getCP()
Copyright © 2020. All rights reserved.