/** * Inserts a new media resource into the feed, if the feed is currently * associated with a Service. * * @return the inserted media Entry returned by the Service. * * @throws ServiceException * If there is no associated GData service or the service is * unable to perform the insertion. * * @throws UnsupportedOperationException * If insert is not supported for the target feed. * * @throws IOException * If there is an error communicating with the GData service. */ public E insert(MediaSource media) throws ServiceException, IOException { return insert(media, entryClass); }
/** * Inserts a new media resource into the feed, if the feed is currently * associated with a Service. * * @return the inserted media Entry returned by the Service. * * @throws ServiceException * If there is no associated GData service or the service is * unable to perform the insertion. * * @throws UnsupportedOperationException * If insert is not supported for the target feed. * * @throws IOException * If there is an error communicating with the GData service. */ public E insert(MediaSource media) throws ServiceException, IOException { return insert(media, entryClass); }