public class StandardsExtractingContentHandler extends ContentHandlerDecorator
This handler relies on complex regular expressions which can be slow on some types of input data.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
STANDARD_REFERENCES |
Constructor and Description |
---|
StandardsExtractingContentHandler(org.xml.sax.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 |
setMaxBufferLength(int maxBufferLength)
The number of characters to store in memory for checking for standards.
|
void |
setThreshold(double score)
Sets the score to be used as threshold.
|
endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, toString
public static final java.lang.String STANDARD_REFERENCES
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 org.xml.sax.SAXException
characters
in interface org.xml.sax.ContentHandler
characters
in class ContentHandlerDecorator
org.xml.sax.SAXException
public void endDocument() throws org.xml.sax.SAXException
endDocument
in interface org.xml.sax.ContentHandler
endDocument
in class ContentHandlerDecorator
org.xml.sax.SAXException
public void setMaxBufferLength(int maxBufferLength)
Copyright © 2010 - 2023 Adobe. All Rights Reserved