Examples of FeedHandler


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

     * @throws BuzzParsingException if a parsing error occurs.
     */
    public static BuzzFeed parseFeed( String xmlResponse )
        throws BuzzParsingException, BuzzIOException
    {
        FeedHandler handler;
        XMLReader xr;
        try
        {
            xr = XMLReaderFactory.createXMLReader();
            handler = new FeedHandler( 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.getFeed();
    }
View Full Code Here

Examples of net.sf.jpluck.handlers.FeedHandler

    super(spider, resource);
  }

  protected ContentHandler getContentHandler() {
    if ((resource.getLevel() == 0) && !resource.getMimeType().startsWith("image/")) {
      return new FeedHandler(spider.pluckerDocument, spider.jxlDocument, resource);
    } else {
      return ContentHandlerFactory.createHandler(spider.pluckerDocument, spider.jxlDocument, resource);
    }
  }
View Full Code Here

Examples of railo.runtime.text.feed.FeedHandler

    else if(outputFile!=null)is=new InputSource(r=IOUtil.getReader(outputFile, charset));
    else is=new InputSource(r=IOUtil.getReader(source, charset));
    is.setSystemId(source.getPath());
   
    try{
      FeedHandler feed=new FeedHandler(source);
      Struct data = feed.getData();
      //print.e(data.keys());
      //print.e(data);
      // properties
      if(properties!=null) {
        String strProp = Caster.toString(properties,null);
        if(strProp==null)throw new ApplicationException("attribute [properties] should be of type string");
        pageContext.setVariable(strProp, FeedProperties.toProperties(data));
      }
     
      // query or enclosure
      railo.runtime.type.Query qry=null;
      if(query!=null || enclosureDir!=null){
        qry=FeedQuery.toQuery(data,feed.hasDC());
      }
     
      // query
      if(query!=null) {
        String strQuery = Caster.toString(query,null);
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.