public class FileNameRuleImageUrl extends java.lang.Object implements FileNameRule
ImageSDCardCache
setFileExtension(String)
set file extensionModifier and Type | Field and Description |
---|---|
static java.lang.String |
DEFAULT_FILE_NAME
default file name if image url is empty
|
static int |
MAX_FILE_NAME_LENGTH
max length of file name, not include suffix
|
Constructor and Description |
---|
FileNameRuleImageUrl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileName(java.lang.String imageUrl)
get file name, include suffix, it's optional to include folder.
|
FileNameRuleImageUrl |
setFileExtension(java.lang.String fileExtension) |
public static final java.lang.String DEFAULT_FILE_NAME
public static final int MAX_FILE_NAME_LENGTH
public java.lang.String getFileName(java.lang.String imageUrl)
FileNameRule
getFileName
in interface FileNameRule
imageUrl
- the url of imagepublic FileNameRuleImageUrl setFileExtension(java.lang.String fileExtension)