com.sun.syndication.io
クラス XmlReaderException

java.lang.Object
  上位を拡張 java.lang.Throwable
      上位を拡張 java.lang.Exception
          上位を拡張 java.io.IOException
              上位を拡張 com.sun.syndication.io.XmlReaderException
すべての実装されたインタフェース:
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.

関連項目:
直列化された形式

コンストラクタの概要
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.
 
メソッドの概要
 java.lang.String getBomEncoding()
          Returns the BOM encoding found in the InputStream.
 java.lang.String getContentTypeEncoding()
          Returns the encoding in the content-type used to attempt determining the encoding.
 java.lang.String getContentTypeMime()
          Returns the MIME type in the content-type used to attempt determining the encoding.
 java.io.InputStream getInputStream()
          Returns the unconsumed InputStream to allow the application to do an alternate encoding detection on the InputStream.
 java.lang.String getXmlEncoding()
          Returns the encoding found in the XML prolog of the InputStream.
 java.lang.String getXmlGuessEncoding()
          Returns the encoding guess based on the first bytes of the InputStream.
 
クラス java.lang.Throwable から継承されたメソッド
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

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.

パラメータ:
msg - message describing the reason for the exception.
bomEnc - BOM encoding.
xmlGuessEnc - XML guess encoding.
xmlEnc - XML prolog encoding.
is - the unconsumed InputStream.

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.

パラメータ:
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.
メソッドの詳細

getBomEncoding

public java.lang.String getBomEncoding()
Returns the BOM encoding found in the InputStream.

戻り値:
the BOM encoding, null if none.

getXmlGuessEncoding

public java.lang.String getXmlGuessEncoding()
Returns the encoding guess based on the first bytes of the InputStream.

戻り値:
the encoding guess, null if it couldn't be guessed.

getXmlEncoding

public java.lang.String getXmlEncoding()
Returns the encoding found in the XML prolog of the InputStream.

戻り値:
the encoding of the XML prolog, null if none.

getContentTypeMime

public java.lang.String getContentTypeMime()
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 detection did not involve HTTP.

getContentTypeEncoding

public java.lang.String getContentTypeEncoding()
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 it or the encoding detection did not involve HTTP.

getInputStream

public java.io.InputStream getInputStream()
Returns the unconsumed InputStream to allow the application to do an alternate encoding detection on the InputStream.

戻り値:
the unconsumed InputStream.