Package com.sun.syndication.feed.rss

Examples of com.sun.syndication.feed.rss.Content


        channel.setLink("");
        channel.setTitle("");
        channel.setFeedType("rss_2.0");
        channel.setDescription("");
        Item item = new Item();
        Content content = new Content();
        content.setType("text/plain");
        content.setValue("hello");
        item.setContent(content);
        channel.getItems().add(item);

        StringWriter sw = new StringWriter();
        WireFeedOutput output = new WireFeedOutput();
View Full Code Here


        if (e!=null) {
            item.setDescription(parseItemDescription(rssRoot,e));
        }
        Element ce = eItem.getChild("encoded", getContentNamespace());
        if (ce != null) {
            Content content = new Content();
            content.setType(Content.HTML);
            content.setValue(ce.getText());
            item.setContent(content);
        }
        return item;
    }
View Full Code Here

            SyndContent descContent = new SyndContentImpl();
            descContent.setType(desc.getType());
            descContent.setValue(desc.getValue());
            syndEntry.setDescription(descContent);
        }
        Content cont = item.getContent();
        if (cont!=null) {
            SyndContent contContent = new SyndContentImpl();
            contContent.setType(cont.getType());
            contContent.setValue(cont.getValue());
            List contents = new ArrayList();
            contents.add(contContent);
            syndEntry.setContents(contents);
        }
               
View Full Code Here

        desc.setType(sContent.getType());
        return desc;
    }

    protected Content createItemContent(SyndContent sContent) {
        Content cont = new Content();
        cont.setValue(sContent.getValue());
        cont.setType(sContent.getType());
        return cont;
    }
View Full Code Here

TOP

Related Classes of com.sun.syndication.feed.rss.Content

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.