public class StandardsExtractingContentHandler extends ContentHandlerDecorator
| Modifier and Type | Field and Description |
|---|---|
static String |
STANDARD_REFERENCES |
| Constructor and Description |
|---|
StandardsExtractingContentHandler(ContentHandler handler,
Metadata metadata)
Creates a decorator for the given SAX event handler and Metadata object.
|
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
The characters method is called whenever a Parser wants to pass raw
characters to the ContentHandler.
|
void |
endDocument()
This method is called whenever the Parser is done parsing the file.
|
double |
getThreshold()
Gets the threshold to be used for selecting the standard references found
within the text based on their score.
|
void |
setThreshold(double score)
Sets the score to be used as threshold.
|
endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toStringerror, fatalError, notationDecl, resolveEntity, unparsedEntityDecl, warningpublic static final String STANDARD_REFERENCES
public StandardsExtractingContentHandler(ContentHandler handler, Metadata metadata)
handler - SAX event handler to be decorated.metadata - Metadata object.public double getThreshold()
public void setThreshold(double score)
score - the score to be used as threshold.public void characters(char[] ch,
int start,
int length)
throws SAXException
characters in interface ContentHandlercharacters in class ContentHandlerDecoratorSAXExceptionpublic void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class ContentHandlerDecoratorSAXExceptionCopyright © 2010 - 2020 Adobe. All Rights Reserved