Search in sources :

Example 1 with ParseException

use of org.eclipse.higgins.rsse.parser.ParseException in project ecf by eclipse.

the class RssClientSOContainer method receiveFeed.

public RssFeed receiveFeed(String feedPath) throws IOException {
    RssFeed feed = null;
    final ISynchAsynchConnection connection = getConnection();
    synchronized (connection) {
        if (connection.isConnected()) {
            try {
                feed = FeedParser.parse((byte[]) connection.sendSynch(null, feedPath.getBytes()));
            } catch (final ParseException e) {
                throw new IOException(e.getMessage());
            }
        }
    }
    return feed;
}
Also used : RssFeed(org.eclipse.higgins.rsse.RssFeed) ISynchAsynchConnection(org.eclipse.ecf.provider.comm.ISynchAsynchConnection) ParseException(org.eclipse.higgins.rsse.parser.ParseException) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 ISynchAsynchConnection (org.eclipse.ecf.provider.comm.ISynchAsynchConnection)1 RssFeed (org.eclipse.higgins.rsse.RssFeed)1 ParseException (org.eclipse.higgins.rsse.parser.ParseException)1