public class XmlStreamReaderException extends IOException
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.
| 构造器和说明 |
|---|
XmlStreamReaderException(String msg,
String bomEnc,
String xmlGuessEnc,
String xmlEnc)
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)
Creates an exception instance if the charset encoding could not be
determined.
|
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getBomEncoding()
Returns the BOM encoding found in the InputStream.
|
String |
getContentTypeEncoding()
Returns the encoding in the content-type used to attempt determining the
encoding.
|
String |
getContentTypeMime()
Returns the MIME type in the content-type used to attempt determining the
encoding.
|
String |
getXmlEncoding()
Returns the encoding found in the XML prolog of the InputStream.
|
String |
getXmlGuessEncoding()
Returns the encoding guess based on the first bytes of the InputStream.
|
public XmlStreamReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc)
Instances of this exception are thrown by the XmlStreamReader.
msg - message describing the reason for the exception.bomEnc - BOM encoding.xmlGuessEnc - XML guess encoding.xmlEnc - XML prolog encoding.public XmlStreamReaderException(String msg, String ctMime, String ctEnc, String bomEnc, String xmlGuessEnc, String xmlEnc)
Instances of this exception are thrown by the XmlStreamReader.
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.public String getBomEncoding()
public String getXmlGuessEncoding()
public String getXmlEncoding()
public String getContentTypeMime()
public String getContentTypeEncoding()