public class FileNameRuleCurrentTime extends java.lang.Object implements FileNameRule
ImageSDCardCache
FileNameRuleCurrentTime.TimeRule as file name| Modifier and Type | Class and Description |
|---|---|
static class |
FileNameRuleCurrentTime.TimeRule
Time Rule
FileNameRuleCurrentTime.TimeRule.YEAR year of current time, E.g., at 2012-7-6 14:37:58.365 PM result is 2012
FileNameRuleCurrentTime.TimeRule.DAY_OF_MONTH indicating the day of the month. |
| Constructor and Description |
|---|
FileNameRuleCurrentTime(FileNameRuleCurrentTime.TimeRule timeRule) |
| 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.
|
public FileNameRuleCurrentTime(FileNameRuleCurrentTime.TimeRule timeRule)
timeRule - see FileNameRuleCurrentTime.TimeRulepublic java.lang.String getFileName(java.lang.String imageUrl)
FileNameRulegetFileName in interface FileNameRuleimageUrl - the url of image