Interface TextChunkDescriptor


  • @API(type=NOT_EXTENDABLE,
         src=PUBLIC)
    public interface TextChunkDescriptor
    Descriptor for a text chunk from a document.
    Since:
    18.1
    • Method Detail

      • getCharSequence

        java.lang.CharSequence getCharSequence()
        Returns:
        The char sequence.
      • getLang

        java.lang.String getLang()
        Returns:
        The language code, may be null, respects the xml:lang encoding (http://www.w3.org/TR/REC-xml/) Ex: "en", "en-GB", "en-US"
      • getStartOffset

        int getStartOffset()
        Returns:
        Returns the start offset of the sequence in document.