Class OldTextPiece

All Implemented Interfaces:
Cloneable, Comparable<TextPiece>

@Internal public class OldTextPiece extends TextPiece
Lightweight representation of a text piece. Works in the character domain, not the byte domain, so you need to have turned byte references into character references before getting here.
  • Constructor Details

    • OldTextPiece

      public OldTextPiece(int start, int end, byte[] text, PieceDescriptor pd)
      Parameters:
      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
  • Method Details