/** * Parses a list of {@link BlockEntry} items from the given XML stream. * * @throws SAXException * @throws ParserConfigurationException * @throws IOException */ public static ArrayList<BlockEntry> getBlockList(InputStream streamRef) throws ParserConfigurationException, SAXException, IOException { SAXParser saxParser = Utility.getSAXParser(); BlockListHandler handler = new BlockListHandler(); saxParser.parse(streamRef, handler); return handler.blocks; }
/** * Parses a list of {@link BlockEntry} items from the given XML stream. * * @throws SAXException * @throws ParserConfigurationException * @throws IOException */ public static ArrayList<BlockEntry> getBlockList(InputStream streamRef) throws ParserConfigurationException, SAXException, IOException { SAXParser saxParser = Utility.getSAXParser(); BlockListHandler handler = new BlockListHandler(); saxParser.parse(streamRef, handler); return handler.blocks; }