public interface IParse
| Modifier and Type | Method and Description |
|---|---|
DataHolder |
getOptions()
Get Options for parsing
|
Node |
parse(BasedSequence input)
Parse the specified input text into a tree of nodes.
|
Node |
parse(String input)
Parse the specified input text into a tree of nodes.
|
Node |
parseReader(Reader input)
Parse the specified reader into a tree of nodes.
|
boolean |
transferReferences(Document document,
Document included)
Deprecated.
|
boolean |
transferReferences(Document document,
Document included,
Boolean onlyIfUndefined)
Transfer reference definition between documents
|
IParse |
withOptions(DataHolder options)
Return an IParse instance configured for passed in options
|
Node parse(BasedSequence input)
Note that this method is thread-safe (a new parser state is used for each invocation).
input - the text to parseNode parse(String input)
Note that this method is thread-safe (a new parser state is used for each invocation).
input - the text to parseNode parseReader(Reader input) throws IOException
Note that this method is thread-safe (a new parser state is used for each invocation).
input - the reader to parseIOException - when reading throws an exceptionIParse withOptions(DataHolder options)
options - options to use for a new instanceDataHolder getOptions()
@Deprecated boolean transferReferences(Document document, Document included)
transferReferences(Document, Document, Boolean)document - destination documentincluded - source documentboolean transferReferences(Document document, Document included, Boolean onlyIfUndefined)
document - destination documentincluded - source documentonlyIfUndefined - true if only should transfer references not already defined in the destination document,
false to transfer all,
null to use repository's KEEP_TYPE to make the determination (if KEEP_FIRST then only transfer if undefined,Copyright © 2019. All rights reserved.