1 package com.sun.syndication.io; 2 3 import java.io.InputStream ; 4 import java.io.IOException ; 5 6 18 public class XmlReaderException extends IOException { 19 private String _bomEncoding; 20 private String _xmlGuessEncoding; 21 private String _xmlEncoding; 22 private String _contentTypeMime; 23 private String _contentTypeEncoding; 24 private InputStream _is; 25 26 38 public XmlReaderException(String msg,String bomEnc,String xmlGuessEnc,String xmlEnc,InputStream is) { 39 this(msg,null,null,bomEnc,xmlGuessEnc,xmlEnc,is); 40 } 41 42 56 public XmlReaderException(String msg,String ctMime,String ctEnc, 57 String bomEnc,String xmlGuessEnc,String xmlEnc,InputStream is) { 58 super(msg); 59 _contentTypeMime = ctMime; 60 _contentTypeEncoding = ctEnc; 61 _bomEncoding = bomEnc; 62 _xmlGuessEncoding = xmlGuessEnc; 63 _xmlEncoding = xmlEnc; 64 _is = is; 65 } 66 67 73 public String getBomEncoding() { 74 return _bomEncoding; 75 } 76 77 83 public String getXmlGuessEncoding() { 84 return _xmlGuessEncoding; 85 } 86 87 93 public String getXmlEncoding() { 94 return _xmlEncoding; 95 } 96 97 104 public String getContentTypeMime() { 105 return _contentTypeMime; 106 } 107 108 115 public String getContentTypeEncoding() { 116 return _contentTypeEncoding; 117 } 118 119 126 public InputStream getInputStream() { 127 return _is; 128 } 129 } 130 | Popular Tags |