public static final class

SearchResult.TextSnippet

extends Object
java.lang.Object
   ↳ com.pspdfkit.document.search.SearchResult.TextSnippet

Class Overview

The SearchResult.TextSnippet can be extracted with a search result to present a preview text to the user.

Summary

Fields
public final Range rangeInSnippet
public final String text Preview text.
Public Constructors
TextSnippet(String text, Range rangeInSnippet)
Public Methods
String toString()
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public final Range rangeInSnippet

public final String text

Preview text. The length of this string will not exceed the maxSnippetLength provided while creating (but may be shorter depending on the result).

Public Constructors

public TextSnippet (String text, Range rangeInSnippet)

Public Methods

public String toString ()