| java.lang.Object java.lang.Throwable java.lang.Exception java.io.IOException com.sun.syndication.io.XmlReaderException
XmlReaderException | public class XmlReaderException extends IOException (Code) | | 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.
author: Alejandro Abdelnur |
Constructor Summary | |
public | XmlReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is) Creates an exception instance if the charset encoding could not be determined. | public | XmlReaderException(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. |
XmlReaderException | public XmlReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is)(Code) | | Creates an exception instance if the charset encoding could not be determined.
Instances of this exception are thrown by the XmlReader.
Parameters: msg - message describing the reason for the exception. Parameters: bomEnc - BOM encoding. Parameters: xmlGuessEnc - XML guess encoding. Parameters: xmlEnc - XML prolog encoding. Parameters: is - the unconsumed InputStream. |
XmlReaderException | public XmlReaderException(String msg, String ctMime, String ctEnc, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is)(Code) | | Creates an exception instance if the charset encoding could not be determined.
Instances of this exception are thrown by the XmlReader.
Parameters: msg - message describing the reason for the exception. Parameters: ctMime - MIME type in the content-type. Parameters: ctEnc - encoding in the content-type. Parameters: bomEnc - BOM encoding. Parameters: xmlGuessEnc - XML guess encoding. Parameters: xmlEnc - XML prolog encoding. Parameters: is - the unconsumed InputStream. |
getBomEncoding | public String getBomEncoding()(Code) | | Returns the BOM encoding found in the InputStream.
the BOM encoding, null if none. |
getContentTypeEncoding | public String getContentTypeEncoding()(Code) | | Returns the encoding in the content-type used to attempt determining the encoding.
the encoding in the content-type, null if there was not content-type, no encoding in itor the encoding detection did not involve HTTP. |
getContentTypeMime | public String getContentTypeMime()(Code) | | Returns the MIME type in the content-type used to attempt determining the encoding.
the MIME type in the content-type, null if there was not content-type or the encoding detectiondid not involve HTTP. |
getInputStream | public InputStream getInputStream()(Code) | | Returns the unconsumed InputStream to allow the application to do an alternate
encoding detection on the InputStream.
the unconsumed InputStream. |
getXmlEncoding | public String getXmlEncoding()(Code) | | Returns the encoding found in the XML prolog of the InputStream.
the encoding of the XML prolog, null if none. |
getXmlGuessEncoding | public String getXmlGuessEncoding()(Code) | | Returns the encoding guess based on the first bytes of the InputStream.
the encoding guess, null if it couldn't be guessed. |
|
|