Package org.codehaus.plexus.util.xml
Class XmlStreamReaderException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.io.IOException
org.codehaus.plexus.util.xml.XmlReaderException
org.codehaus.plexus.util.xml.XmlStreamReaderException
- All Implemented Interfaces:
- Serializable
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.
- Version:
- revision 1.1 taken on 26/06/2007 from Rome (see https://rome.dev.java.net/source/browse/rome/src/java/com/sun/syndication/io/XmlReaderException.java)
- Author:
- Alejandro Abdelnur
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionXmlStreamReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is) 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, InputStream is) Creates an exception instance if the charset encoding could not be determined.
- 
Method SummaryMethods inherited from class org.codehaus.plexus.util.xml.XmlReaderExceptiongetBomEncoding, getContentTypeEncoding, getContentTypeMime, getInputStream, getXmlEncoding, getXmlGuessEncodingMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
XmlStreamReaderExceptionpublic XmlStreamReaderException(String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is) 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.
- bomEnc- BOM encoding.
- xmlGuessEnc- XML guess encoding.
- xmlEnc- XML prolog encoding.
- is- the unconsumed InputStream.
 
- 
XmlStreamReaderExceptionpublic XmlStreamReaderException(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.Instances of this exception are thrown by the XmlReader. - Parameters:
- 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.
 
 
-