public class EncodingDetector extends org.xml.sax.helpers.DefaultHandler
| Modifier and Type | Method and Description |
|---|---|
static String |
detect(InputStream in) |
void |
setDocumentLocator(Locator locator) |
void |
startDocument() |
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, startElement, startPrefixMapping, unparsedEntityDecl, warningpublic static String detect(InputStream in) throws IOException, ParserConfigurationException, SAXException
public void setDocumentLocator(Locator locator)
setDocumentLocator in interface ContentHandlersetDocumentLocator in class org.xml.sax.helpers.DefaultHandlerpublic void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class org.xml.sax.helpers.DefaultHandlerSAXExceptionCopyright © 2017 JBoss by Red Hat. All Rights Reserved.