public RSSReader(int maxsize, final InputStream stream, Type type) throws IOException {
this(maxsize);
this.type = type;
final SAXParserFactory factory = SAXParserFactory.newInstance();
try {
final SAXParser saxParser = factory.newSAXParser();
saxParser.parse(stream, this);
} catch (SAXException e) {
throw new IOException (e.getMessage());
} catch (ParserConfigurationException e) {
throw new IOException (e.getMessage());