class XmlStreamReaderException extends XmlReaderException
The XmlStreamReaderException is thrown by the XmlStreamReader constructors if the charset encoding can not be determined according to the XML 1.0 specification and RFC 3023.
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.
Modifier and Type | Field and Description |
---|---|
private static long |
serialVersionUID |
Constructor and Description |
---|
XmlStreamReaderException(java.lang.String msg,
java.lang.String bomEnc,
java.lang.String xmlGuessEnc,
java.lang.String xmlEnc,
java.io.InputStream is)
Creates an exception instance if the charset encoding could not be determined.
|
XmlStreamReaderException(java.lang.String msg,
java.lang.String ctMime,
java.lang.String ctEnc,
java.lang.String bomEnc,
java.lang.String xmlGuessEnc,
java.lang.String xmlEnc,
java.io.InputStream is)
Creates an exception instance if the charset encoding could not be determined.
|
getBomEncoding, getContentTypeEncoding, getContentTypeMime, getInputStream, getXmlEncoding, getXmlGuessEncoding
private static final long serialVersionUID
XmlStreamReaderException(java.lang.String msg, java.lang.String bomEnc, java.lang.String xmlGuessEnc, java.lang.String xmlEnc, java.io.InputStream is)
msg
- message describing the reason for the exception.bomEnc
- BOM encoding.xmlGuessEnc
- XML guess encoding.xmlEnc
- XML prolog encoding.is
- the unconsumed InputStream.XmlStreamReaderException(java.lang.String msg, java.lang.String ctMime, java.lang.String ctEnc, java.lang.String bomEnc, java.lang.String xmlGuessEnc, java.lang.String xmlEnc, java.io.InputStream is)
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.