Package churchillobjects.rss4j

Examples of churchillobjects.rss4j.RssChannel


        XPath xpath = XPathFactory.newInstance().newXPath();
        String instructionExpression = "/automatedInstallation/instructions/instructionSet";

        while (repos.hasMoreElements()) {
            RssChannel repo = (RssChannel) repos.nextElement();
            Enumeration repoItems = repo.items();

            while (repoItems.hasMoreElements()) {
                RssChannelItem item = (RssChannelItem) repoItems.nextElement();

                RssJbnPatch patch = item.getJbnPatch();
View Full Code Here


   * @param qName
   * @param attrs
   */
  public void startElement(String uri, String name, String qName, Attributes attrs) throws SAXException{
    if("channel".equals(name)){
      currentChannel = new RssChannel();
      inChannel = true;
    }
    if("item".equals(name)){
      currentItem = new RssChannelItem();
      inItem = true;
View Full Code Here

     * @param name
     * @param qName
     * @param attrs
     */
    protected void handleChannel(String uri, String name, String qName, Attributes attrs) throws RssParseException{
        currentChannel = new RssChannel();
        String about = getAttributeUnqualified(name, "about", "rdf", attrs);
        currentChannel.setChannelUri(about);
        document.addChannel(currentChannel);
        inChannel = true;
    }
View Full Code Here

  private void writeRssDocument(RssDocument data) throws RssGenerationException{
    try{
      createRssDocument(data);
      Enumeration channels = data.channels();
      while(channels.hasMoreElements()){
        RssChannel channel = (RssChannel)channels.nextElement();
        if(channel!=null){
          handleChannel(channel);
        }
      }
      finishDocument();
View Full Code Here

    // TODO Auto-generated method stub
   
    RssDocument doc = new RssDocument();
    doc.setVersion(RssDocument.VERSION_10);
   
    RssChannel channel = new RssChannel();
    channel.setChannelTitle("Karens Recipes | Most Recent");
    channel.setChannelLink("http://santasu.blogspot.com/feeds/posts/default?alt=rss");
    channel.setChannelDescription("The 10 most recently added recipes in the soup category.");
    channel.setChannelUri("http://santasu.blogspot.com/feeds/posts/default?alt=rss");
    doc.addChannel(channel);
   
    Enumeration ee = channel.items();
   


   
    // connect to the datasource
    // iterate over something (db? vector?...)
    RssChannelItem item = new RssChannelItem();
    item.setItemTitle("Karens Recipes | Most Recent");
    item.setItemLink("http://www.karensrecipes.com/3/Soup/default.jsp");
    item.setItemDescription("The 10 most recently added recipes in the soup category.");
    channel.addItem(item);
   
    int a =channel.getItemCount();
       
    File file = new File("/discNFS/rss.xml");
    try{
    RssGenerator.generateRss(doc, file);
    System.out.println("RSS file written.");
View Full Code Here

TOP

Related Classes of churchillobjects.rss4j.RssChannel

Copyright © 2018 www.massapicom. 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.