Package com.sun.syndication.io

Examples of com.sun.syndication.io.SyndFeedOutput.output()


            {
                feed.setLink( req.getRequestURL().toString() );
            }

            SyndFeedOutput output = new SyndFeedOutput();
            output.output( feed, res.getWriter() );
        }
        catch ( UserNotFoundException unfe )
        {
            log.debug( COULD_NOT_AUTHENTICATE_USER, unfe );
            res.sendError( HttpServletResponse.SC_UNAUTHORIZED, COULD_NOT_AUTHENTICATE_USER );
View Full Code Here


                    feed = myListener.filterFeed(layer,kvp,baseUrl,req);
                }
               
                //write out the feed
                SyndFeedOutput out = new SyndFeedOutput();
                out.output(feed, resp.getWriter());
                resp.getWriter().flush();
            }
          
        } catch (Exception e){
          resp.setStatus(500);
View Full Code Here

    }

    protected void writeFeed(SyndFeed feed, MessageExchange messageExchange, NormalizedMessage message) throws IOException, FeedException {
        Writer writer = new FileWriter(feedFile);
        SyndFeedOutput output = new SyndFeedOutput();
        output.output(feed, writer);
        writer.close();
    }

    /**
     * Removes any old entires no longer required in the cachedFeed
View Full Code Here

    public void saveFeed(String layer, SyndFeed feed) throws Exception{
        File f = getFile(layer);
        synchronized ( this ) {
            PrintWriter writer = new PrintWriter(new FileWriter(f));
            SyndFeedOutput out = new SyndFeedOutput();
            out.output(feed, writer);   
        }
    }

    public SyndEntry eventToEntry(TransactionEvent evt) throws Exception{
        SyndEntry entry = new SyndEntryImpl();
View Full Code Here

    protected void printFooter(PrintWriter writer, QueueBrowser browser, HttpServletRequest request) throws IOException, JMSException, ServletException {
        // now lets actually write out the content
        SyndFeed feed = getFeed(browser, request);
        SyndFeedOutput output = new SyndFeedOutput();
        try {
            output.output(feed, writer);
        } catch (FeedException e) {
            throw new ServletException(e);
        }
    }
View Full Code Here

            throws IOException, JMSException, ServletException {
        // now lets actually write out the content
        SyndFeed feed = getFeed(browser, request);
        SyndFeedOutput output = new SyndFeedOutput();
        try {
            output.output(feed, writer);
        }
        catch (FeedException e) {
            throw new ServletException(e);
        }
    }
View Full Code Here

            {
                feed.setLink( req.getRequestURL().toString() );
            }

            SyndFeedOutput output = new SyndFeedOutput();
            output.output( feed, res.getWriter() );
        }
        catch ( UserNotFoundException unfe )
        {
            log.debug( COULD_NOT_AUTHENTICATE_USER, unfe );
            res.sendError( HttpServletResponse.SC_UNAUTHORIZED, COULD_NOT_AUTHENTICATE_USER );
View Full Code Here

//                                    + e.getMessage(), e);
//                }
//            }
            feed.setEntries(entries);
            SyndFeedOutput output = new SyndFeedOutput();
            output.output(feed,writer);
            writer.close();
        }
        catch (Exception ex) {
            logger.error(ex.getMessage(), ex);
        }
View Full Code Here

                feed.setEntries(entries);

                Writer writer = new FileWriter(fileName);
                SyndFeedOutput output = new SyndFeedOutput();
                output.output(feed,writer);
                writer.close();

                System.out.println("The feed has been written to the file ["+fileName+"]");

                ok = true;
View Full Code Here

        try {
            if (arguments[0] instanceof String) {
                fileHostHostObject = (FileHostObject) cx.newObject(feedObject, "File", arguments);
                fileWriter = new FileWriter(fileHostHostObject.getFile());
                SyndFeedOutput output = new SyndFeedOutput();
                output.output(feedObject.feed, fileWriter);
                fileWriter.close();
            } else if (arguments[0] instanceof FileHostObject) {
                fileHostHostObject = (FileHostObject) arguments[0];
                fileWriter = new FileWriter(fileHostHostObject.getFile());
                SyndFeedOutput output = new SyndFeedOutput();
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.