hudson.plugins.violations.parse
Class XmlStreamReaderException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.io.IOException
              extended by hudson.plugins.violations.parse.XmlReaderException
                  extended by hudson.plugins.violations.parse.XmlStreamReaderException
All Implemented Interfaces:
java.io.Serializable

public class XmlStreamReaderException
extends XmlReaderException

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:
Serialized Form

Constructor Summary
XmlStreamReaderException(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.
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, java.io.InputStream is)
          Creates an exception instance if the charset encoding could not be determined.
 
Method Summary
 
Methods inherited from class hudson.plugins.violations.parse.XmlReaderException
getBomEncoding, getContentTypeEncoding, getContentTypeMime, getInputStream, getXmlEncoding, getXmlGuessEncoding
 
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
 

Constructor Detail

XmlStreamReaderException

public XmlStreamReaderException(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.

Parameters:
msg - message describing the reason for the exception.
bomEnc - BOM encoding.
xmlGuessEnc - XML guess encoding.
xmlEnc - XML prolog encoding.
is - the unconsumed InputStream.

XmlStreamReaderException

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,
                                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.

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.


Copyright © 2004-2012. All Rights Reserved.