Coverage Report - org.codehaus.plexus.util.xml.XmlStreamReaderException
 
Classes in this File Line Coverage Branch Coverage Complexity
XmlStreamReaderException
0%
0/4
N/A
1
 
 1  
 package org.codehaus.plexus.util.xml;
 2  
 
 3  
 /*
 4  
  * Licensed to the Apache Software Foundation (ASF) under one
 5  
  * or more contributor license agreements.  See the NOTICE file
 6  
  * distributed with this work for additional information
 7  
  * regarding copyright ownership.  The ASF licenses this file
 8  
  * to you under the Apache License, Version 2.0 (the
 9  
  * "License"); you may not use this file except in compliance
 10  
  * with the License.  You may obtain a copy of the License at
 11  
  *
 12  
  *   http://www.apache.org/licenses/LICENSE-2.0
 13  
  *
 14  
  * Unless required by applicable law or agreed to in writing,
 15  
  * software distributed under the License is distributed on an
 16  
  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 17  
  * KIND, either express or implied.  See the License for the
 18  
  * specific language governing permissions and limitations
 19  
  * under the License.
 20  
  */
 21  
 
 22  
 import java.io.InputStream;
 23  
 
 24  
 /**
 25  
  * The XmlStreamReaderException is thrown by the XmlStreamReader constructors if the charset encoding can not be determined
 26  
  * according to the XML 1.0 specification and RFC 3023.
 27  
  * <p>
 28  
  * The exception returns the unconsumed InputStream to allow the application to do an alternate processing with the
 29  
  * stream. Note that the original InputStream given to the XmlStreamReader cannot be used as that one has been already read.
 30  
  * <p>
 31  
  * 
 32  
  * @author Alejandro Abdelnur
 33  
  * @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)
 34  
  * @deprecated TO BE REMOVED from here when plexus-utils is upgraded to 1.4.5+ (and prerequisite upgraded to Maven 2.0.6)
 35  
  */
 36  
 public class XmlStreamReaderException extends XmlReaderException
 37  
 {
 38  
     /**
 39  
      * Creates an exception instance if the charset encoding could not be determined.
 40  
      * <p>
 41  
      * Instances of this exception are thrown by the XmlReader.
 42  
      * <p>
 43  
      * 
 44  
      * @param msg
 45  
      *            message describing the reason for the exception.
 46  
      * @param bomEnc
 47  
      *            BOM encoding.
 48  
      * @param xmlGuessEnc
 49  
      *            XML guess encoding.
 50  
      * @param xmlEnc
 51  
      *            XML prolog encoding.
 52  
      * @param is
 53  
      *            the unconsumed InputStream.
 54  
      * 
 55  
      */
 56  
     public XmlStreamReaderException( String msg, String bomEnc, String xmlGuessEnc, String xmlEnc, InputStream is )
 57  
     {
 58  0
         super( msg, bomEnc, xmlGuessEnc, xmlEnc, is );
 59  0
     }
 60  
 
 61  
     /**
 62  
      * Creates an exception instance if the charset encoding could not be determined.
 63  
      * <p>
 64  
      * Instances of this exception are thrown by the XmlReader.
 65  
      * <p>
 66  
      * 
 67  
      * @param msg
 68  
      *            message describing the reason for the exception.
 69  
      * @param ctMime
 70  
      *            MIME type in the content-type.
 71  
      * @param ctEnc
 72  
      *            encoding in the content-type.
 73  
      * @param bomEnc
 74  
      *            BOM encoding.
 75  
      * @param xmlGuessEnc
 76  
      *            XML guess encoding.
 77  
      * @param xmlEnc
 78  
      *            XML prolog encoding.
 79  
      * @param is
 80  
      *            the unconsumed InputStream.
 81  
      * 
 82  
      */
 83  
     public XmlStreamReaderException( String msg, String ctMime, String ctEnc, String bomEnc, String xmlGuessEnc,
 84  
                                String xmlEnc, InputStream is )
 85  
     {
 86  0
         super( msg, ctMime, ctEnc, bomEnc, xmlGuessEnc, xmlEnc, is );
 87  0
     }
 88  
 }