get

open fun get(@NonNull path: String): PdfLibrary

Returns a library for a given path. If no library exists for this path yet, this method will create and return one.

Parameters

path

Writable path to library database file.

Throws

if file could not be written.


open fun get(@NonNull path: String, @NonNull tokenizer: String): PdfLibrary

Returns a library for a given path. If no library exists for this path yet, this method will create and return one.

Parameters

path

Writable path to library database file.

tokenizer

The tokenizer to use, one of PORTER_TOKENIZER or UNICODE_TOKENIZER. This controls how the PdfLibrary matches queries to the content in the index.

Throws

if file could not be written.