public abstract class AbstractFileNameFilter extends java.lang.Object implements FileNameFilter
| Constructor and Description |
|---|
AbstractFileNameFilter() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(java.lang.String fileName)
Determines whether to accept the file with the given name or not
|
java.lang.String |
getFolderName()
Gets the folder whose file are to be accepted, this path is relative to the
bucket.
|
boolean |
isAcceptSubFolders()
Checks the flag if the sub folders are to be accepted or not.
|
abstract boolean |
isFileNameAccepted(java.lang.String fileName) |
void |
setAcceptSubFolders(boolean acceptSubFolders)
Sets if the sub folders of the folder set in
folderName
are to be accepted or not. |
void |
setFolderName(java.lang.String folderName)
Sets the base folder name under which which the files will be accepted.
|
public boolean accept(java.lang.String fileName)
FileNameFilteraccept in interface FileNameFilterpublic java.lang.String getFolderName()
public void setFolderName(java.lang.String folderName)
folderName - public boolean isAcceptSubFolders()
public void setAcceptSubFolders(boolean acceptSubFolders)
folderName
are to be accepted or not.acceptSubFolders - public abstract boolean isFileNameAccepted(java.lang.String fileName)