|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.coobird.thumbnailator.Thumbnails
public final class Thumbnails
This class provides a fluent interface to create thumbnails.
thumbnail.
appended to the beginning of the file name.
Thumbnails.of(directory.listFiles()) .size(200, 200) .outputFormat("jpeg") .asFiles(Rename.PREFIX_DOT_THUMBNAIL);
Nested Class Summary | |
---|---|
static class |
Thumbnails.Builder<T>
A builder interface for Thumbnailator. |
Method Summary | |
---|---|
static Thumbnails.Builder<File> |
fromFilenames(Iterable<String> files)
Indicate to make thumbnails for images with the specified filenames. |
static Thumbnails.Builder<File> |
fromFiles(Iterable<File> files)
Indicate to make thumbnails from the specified File s. |
static Thumbnails.Builder<BufferedImage> |
fromImages(Iterable<BufferedImage> images)
Indicate to make thumbnails from the specified BufferedImage s. |
static Thumbnails.Builder<InputStream> |
fromInputStreams(Iterable<? extends InputStream> inputStreams)
Indicate to make thumbnails for images obtained from the specified InputStream s. |
static Thumbnails.Builder<URL> |
fromURLs(Iterable<URL> urls)
Indicate to make thumbnails for images with the specified URL s. |
static Thumbnails.Builder<BufferedImage> |
of(BufferedImage... images)
Indicate to make thumbnails from the specified BufferedImage s. |
static Thumbnails.Builder<File> |
of(File... files)
Indicate to make thumbnails from the specified File s. |
static Thumbnails.Builder<? extends InputStream> |
of(InputStream... inputStreams)
Indicate to make thumbnails from the specified InputStream s. |
static Thumbnails.Builder<File> |
of(String... files)
Indicate to make thumbnails for images with the specified filenames. |
static Thumbnails.Builder<URL> |
of(URL... urls)
Indicate to make thumbnails from the specified URL s. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Thumbnails.Builder<File> of(String... files)
files
- File names of image files for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty array.public static Thumbnails.Builder<File> of(File... files)
File
s.
files
- File
objects of image files for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty array.public static Thumbnails.Builder<URL> of(URL... urls)
URL
s.
urls
- URL
objects of image files for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty array.public static Thumbnails.Builder<? extends InputStream> of(InputStream... inputStreams)
InputStream
s.
inputStreams
- InputStream
s which provide the images
for which thumbnails are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty array.public static Thumbnails.Builder<BufferedImage> of(BufferedImage... images)
BufferedImage
s.
images
- BufferedImage
s for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty array.public static Thumbnails.Builder<File> fromFilenames(Iterable<String> files)
files
- File names of image files for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty collection.public static Thumbnails.Builder<File> fromFiles(Iterable<File> files)
File
s.
files
- File
objects of image files for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty collection.public static Thumbnails.Builder<URL> fromURLs(Iterable<URL> urls)
URL
s.
urls
- URLs of the images for which thumbnails
are to be produced.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty collection.public static Thumbnails.Builder<InputStream> fromInputStreams(Iterable<? extends InputStream> inputStreams)
InputStream
s.
inputStreams
- InputStream
s which provide images for
which thumbnails are to be produced.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty collection.public static Thumbnails.Builder<BufferedImage> fromImages(Iterable<BufferedImage> images)
BufferedImage
s.
images
- BufferedImage
s for which thumbnails
are to be produced for.
NullPointerException
- If the argument is null
.
IllegalArgumentException
- If the argument is an empty collection.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |