/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param galleryId * the Flickr gallery ID. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, String galleryId) throws Exception { return createFromGallery(reader, token, galleryId, 0); }
/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param galleryId * the Flickr gallery ID. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, String galleryId) throws Exception { return createFromGallery(reader, token, galleryId, 0); }
/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param gallery * the gallery. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, Gallery gallery) throws Exception { return createFromGallery(reader, token, gallery.getId(), 0); }
/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param gallery * the gallery. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, Gallery gallery) throws Exception { return createFromGallery(reader, token, gallery.getId(), 0); }
/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param gallery * the gallery. * @param number * the maximum number of images to add to the dataset. Setting to * 0 or less will attempt to use all the images. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, Gallery gallery, int number) throws Exception { return createFromGallery(reader, token, gallery.getId(), number); }
/** * Create an image dataset from a flickr gallery with the specified * parameters. * * @param reader * the reader with which to load the images * @param token * the flickr api authentication token * @param gallery * the gallery. * @param number * the maximum number of images to add to the dataset. Setting to * 0 or less will attempt to use all the images. * @return a {@link FlickrImageDataset} created from the gallery described * by the given parameters * @throws Exception * if an error occurs */ public static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> createFromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, Gallery gallery, int number) throws Exception { return createFromGallery(reader, token, gallery.getId(), number); }
private static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> fromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, String urlString, int number) throws Exception { final Flickr flickr = makeFlickr(token); final Gallery gallery = flickr.getUrlsInterface().lookupGallery(urlString); return createFromGallery(reader, token, gallery, number); }
private static <IMAGE extends Image<?, IMAGE>> FlickrImageDataset<IMAGE> fromGallery( InputStreamObjectReader<IMAGE> reader, FlickrAPIToken token, String urlString, int number) throws Exception { final Flickr flickr = makeFlickr(token); final Gallery gallery = flickr.getUrlsInterface().lookupGallery(urlString); return createFromGallery(reader, token, gallery, number); }