|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.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
A Rename which does not alter the given file name.
For example, given picture.jpg, result is picture.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
public static final Rename PREFIX_DOT_THUMBNAIL
Appends thumbnail. to the beginning of the file name.
For example, given picture.jpg, result is
thumbnail.picture.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
@Deprecated public static final Rename PREFIX_HYPTHEN_THUMBNAIL
PREFIX_HYPHEN_THUMBNAIL. This constant
will be removed in Thumbnailator 0.5.0.
Appends thumbnail- to the beginning of the file name.
For example, given picture.jpg, result is
thumbnail-picture.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
public static final Rename PREFIX_HYPHEN_THUMBNAIL
Appends thumbnail- to the beginning of the file name.
For example, given picture.jpg, result is
thumbnail-picture.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
public static final Rename SUFFIX_DOT_THUMBNAIL
Appends .thumbnail to the file name prior to the extension of
the file.
For example, given picture.jpg, result is
picture.thumbnail.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
@Deprecated public static final Rename SUFFIX_HYPTHEN_THUMBNAIL
SUFFIX_HYPHEN_THUMBNAIL. This constant
will be removed in Thumbnailator 0.5.0.
Appends -thumbnail to the file name prior to the extension of
the file.
For example, given picture.jpg, result is
picture-thumbnail.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
public static final Rename SUFFIX_HYPHEN_THUMBNAIL
Appends -thumbnail to the file name prior to the extension of
the file.
For example, given picture.jpg, result is
picture-thumbnail.jpg.
Note: The apply(String, ThumbnailParameter) method does not use
the param parameter. A value of null for param is
permitted.
| 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 | ||||||||