public class XmlStreamReaderException extends XmlReaderException
The exception returns the unconsumed InputStream to allow the application to do an alternate processing with the stream. Note that the original InputStream given to the XmlStreamReader cannot be used as that one has been already read.
Constructor and Description |
---|
XmlStreamReaderException(String msg,
String bomEnc,
String xmlGuessEnc,
String xmlEnc,
InputStream is)
Creates an exception instance if the charset encoding could not be determined.
|
XmlStreamReaderException(String msg,
String ctMime,
String ctEnc,
String bomEnc,
String xmlGuessEnc,
String xmlEnc,
InputStream is)
Creates an exception instance if the charset encoding could not be determined.
|
getBomEncoding, getContentTypeEncoding, getContentTypeMime, getInputStream, getXmlEncoding, getXmlGuessEncoding
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public XmlStreamReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is)
Instances of this exception are thrown by the XmlReader.
msg
- message describing the reason for the exception.bomEnc
- BOM encoding.xmlGuessEnc
- XML guess encoding.xmlEnc
- XML prolog encoding.is
- the unconsumed InputStream.public XmlStreamReaderException(String msg, String ctMime, String ctEnc, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is)
Instances of this exception are thrown by the XmlReader.
msg
- message describing the reason for the exception.ctMime
- MIME type in the content-type.ctEnc
- encoding in the content-type.bomEnc
- BOM encoding.xmlGuessEnc
- XML guess encoding.xmlEnc
- XML prolog encoding.is
- the unconsumed InputStream.Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.