|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.coobird.thumbnailator.name.Rename
public abstract class Rename
This class is used to rename file names.
Field Summary | |
---|---|
static Rename |
NO_CHANGE
A Rename which does not alter the given file name. |
static Rename |
PREFIX_DOT_THUMBNAIL
Appends thumbnail. to the beginning of the file name. |
static Rename |
PREFIX_HYPHEN_THUMBNAIL
Appends thumbnail- to the beginning of the file name. |
static Rename |
PREFIX_HYPTHEN_THUMBNAIL
Deprecated. Please use the correctly spelled PREFIX_HYPHEN_THUMBNAIL . This constant
will be removed in Thumbnailator 0.5.0. |
static Rename |
SUFFIX_DOT_THUMBNAIL
Appends .thumbnail to the file name prior to the extension of
the file. |
static Rename |
SUFFIX_HYPHEN_THUMBNAIL
Appends -thumbnail to the file name prior to the extension of
the file. |
static Rename |
SUFFIX_HYPTHEN_THUMBNAIL
Deprecated. Please use the correctly spelled SUFFIX_HYPHEN_THUMBNAIL . This constant
will be removed in Thumbnailator 0.5.0. |
Method Summary | |
---|---|
abstract String |
apply(String name,
ThumbnailParameter param)
Applies the function performed by this Rename on the
specified name and thumbnail creation parameters. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final Rename NO_CHANGE
Rename
which does not alter the given file name.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
picture.jpg
public static final Rename PREFIX_DOT_THUMBNAIL
thumbnail.
to the beginning of the file name.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
thumbnail.picture.jpg
@Deprecated public static final Rename PREFIX_HYPTHEN_THUMBNAIL
PREFIX_HYPHEN_THUMBNAIL
. This constant
will be removed in Thumbnailator 0.5.0.thumbnail-
to the beginning of the file name.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
thumbnail-picture.jpg
public static final Rename PREFIX_HYPHEN_THUMBNAIL
thumbnail-
to the beginning of the file name.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
thumbnail-picture.jpg
public static final Rename SUFFIX_DOT_THUMBNAIL
.thumbnail
to the file name prior to the extension of
the file.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
picture.thumbnail.jpg
@Deprecated public static final Rename SUFFIX_HYPTHEN_THUMBNAIL
SUFFIX_HYPHEN_THUMBNAIL
. This constant
will be removed in Thumbnailator 0.5.0.-thumbnail
to the file name prior to the extension of
the file.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
picture-thumbnail.jpg
public static final Rename SUFFIX_HYPHEN_THUMBNAIL
-thumbnail
to the file name prior to the extension of
the file.
Note: The apply(String, ThumbnailParameter)
method does not use
the param
parameter. A value of null
for param
is
permitted.
picture.jpg
picture-thumbnail.jpg
Method Detail |
---|
public abstract String apply(String name, ThumbnailParameter param)
Rename
on the
specified name and thumbnail creation parameters.
name
- Name to apply the function on.
The file name should not include the directory
in which the file resides in.param
- Parameters used to create the thumbnail.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |