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;
}
Aggregations