|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.apache.commons.io.input.XmlStreamReaderException
public class XmlStreamReaderException
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.
Field Summary | |
---|---|
private java.lang.String |
bomEncoding
|
private java.lang.String |
contentTypeEncoding
|
private java.lang.String |
contentTypeMime
|
private static long |
serialVersionUID
|
private java.lang.String |
xmlEncoding
|
private java.lang.String |
xmlGuessEncoding
|
Constructor Summary | |
---|---|
XmlStreamReaderException(java.lang.String msg,
java.lang.String bomEnc,
java.lang.String xmlGuessEnc,
java.lang.String xmlEnc)
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)
Creates an exception instance if the charset encoding could not be determined. |
Method Summary | |
---|---|
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.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. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
private static final long serialVersionUID
private final java.lang.String bomEncoding
private final java.lang.String xmlGuessEncoding
private final java.lang.String xmlEncoding
private final java.lang.String contentTypeMime
private final java.lang.String contentTypeEncoding
Constructor Detail |
---|
public XmlStreamReaderException(java.lang.String msg, java.lang.String bomEnc, java.lang.String xmlGuessEnc, java.lang.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(java.lang.String msg, java.lang.String ctMime, java.lang.String ctEnc, java.lang.String bomEnc, java.lang.String xmlGuessEnc, java.lang.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.Method Detail |
---|
public java.lang.String getBomEncoding()
public java.lang.String getXmlGuessEncoding()
public java.lang.String getXmlEncoding()
public java.lang.String getContentTypeMime()
public java.lang.String getContentTypeEncoding()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |