java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
com.sun.syndication.io.XmlReaderException
- All Implemented Interfaces:
- java.io.Serializable
- public class XmlReaderException
- extends java.io.IOException
The XmlReaderException is thrown by the XmlReader 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
XmlReader cannot be used as that one has been already read.
| Nested classes inherited from class java.lang.Throwable |
|
| Fields inherited from class java.lang.Throwable |
|
|
Constructor Summary |
XmlReaderException(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. |
XmlReaderException(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. |
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
_bomEncoding
private java.lang.String _bomEncoding
_xmlGuessEncoding
private java.lang.String _xmlGuessEncoding
_xmlEncoding
private java.lang.String _xmlEncoding
_contentTypeMime
private java.lang.String _contentTypeMime
_contentTypeEncoding
private java.lang.String _contentTypeEncoding
_is
private java.io.InputStream _is
XmlReaderException
public XmlReaderException(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.
Instances of this exception are thrown by the XmlReader.
XmlReaderException
public XmlReaderException(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.
Instances of this exception are thrown by the XmlReader.
getBomEncoding
public java.lang.String getBomEncoding()
- Returns the BOM encoding found in the InputStream.
getXmlGuessEncoding
public java.lang.String getXmlGuessEncoding()
- Returns the encoding guess based on the first bytes of the InputStream.
getXmlEncoding
public java.lang.String getXmlEncoding()
- Returns the encoding found in the XML prolog of the InputStream.
getContentTypeMime
public java.lang.String getContentTypeMime()
- Returns the MIME type in the content-type used to attempt determining the encoding.
getContentTypeEncoding
public java.lang.String getContentTypeEncoding()
- Returns the encoding in the content-type used to attempt determining the encoding.
getInputStream
public java.io.InputStream getInputStream()
- Returns the unconsumed InputStream to allow the application to do an alternate
encoding detection on the InputStream.