* @throws ServiceException If the service is unable to handle the request.
* @throws IOException error sending request or reading the feed.
*/
private static void printSubscriptionsFeed(YouTubeService service,
String feedUrl) throws IOException, ServiceException {
SubscriptionFeed subscriptionFeed = service.getFeed(new URL(feedUrl),
SubscriptionFeed.class);
printUnderlined(subscriptionFeed.getTitle().getPlainText());
for (SubscriptionEntry se : subscriptionFeed.getEntries()) {
printSubscriptionEntry(se);
}
System.out.println();
}