java.lang.Object | |
↳ | com.pdftron.pdf.TextSearchResult |
TextSearchResult is used by the TextSearch class for returning a search result. Note that users should always query the result code using method getCode() before using other information. Only when the code is 'e_found', is other information valid.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | e_done | Codes that indicate why the search process returns. | |||||||||
int | e_found | The Constant e_found. | |||||||||
int | e_page | The Constant e_page. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
TextSearchResult(int cd, int pn, String rs, String as, long hlts_impl)
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getAmbientStr()
Get the ambient string that surrounds the found string.
| ||||||||||
int |
getCode()
Get the code indicating the reason that the search process returns.
| ||||||||||
Highlights |
getHighlights()
Get the Highlight info that is associated with the found string.
| ||||||||||
int |
getPageNum()
Get the number of the page the found instance is on.
| ||||||||||
String |
getResultStr()
Get the found string that matches the input pattern.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Codes that indicate why the search process returns.
The Constant e_found.
The Constant e_page.
Constructor.
cd | search process return code |
---|---|
pn | page number |
rs | result string |
as | ambient string |
hlts_impl | highlight_impl |
Get the ambient string that surrounds the found string.
Get the code indicating the reason that the search process returns.
Get the Highlight info that is associated with the found string.
Get the number of the page the found instance is on.
Get the found string that matches the input pattern.