public class XMLTextExtractor extends AbstractTextExtractor
This class can handle any XML-based format (application/xml+something), not just the base XML content
types reported by AbstractTextExtractor.getContentTypes(). However, it often makes sense to use more specialized extractors that
better understand the specific content type.
| Constructor and Description |
|---|
XMLTextExtractor()
Creates a new
XMLTextExtractor instance. |
| Modifier and Type | Method and Description |
|---|---|
String |
extractText(InputStream stream,
String type,
String encoding)
Returns a reader for the text content of the given XML document.
|
getContentTypespublic XMLTextExtractor()
XMLTextExtractor instance.public String extractText(InputStream stream, String type, String encoding) throws IOException
stream - XML documenttype - XML content typeencoding - character encoding, or nullIOException - if the XML document stream can not be closedCopyright © 2018 Open Knowledge Management System S.L.. All rights reserved.