Examples of FeedEntryHandler


Examples of com.google.buzz.parser.handler.FeedEntryHandler

     * @throws BuzzParsingException if a parsing error occurs.
     */
    public static BuzzFeedEntry parseFeedEntry( String xmlResponse )
        throws BuzzParsingException, BuzzIOException
    {
        FeedEntryHandler handler;
        XMLReader xr;
        try
        {
            xr = XMLReaderFactory.createXMLReader();
            handler = new FeedEntryHandler( xr );
            xr.setContentHandler( handler );
            xr.setErrorHandler( handler );
            xr.parse( new InputSource( new ByteArrayInputStream( xmlResponse.getBytes( "UTF-8" ) ) ) );
        }
        catch ( SAXException e )
        {
            throw new BuzzParsingException( e );
        }
        catch ( IOException e )
        {
            throw new BuzzIOException( e );
        }
        return handler.getBuzzFeedEntry();
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.