public class DefaultGlobService extends AbstractFreedesktopService<GlobEntry> implements GlobService
bases, basesList| Constructor and Description |
|---|
DefaultGlobService() |
| Modifier and Type | Method and Description |
|---|---|
GlobEntry |
getByMimeType(String mimeType) |
static String |
globToRE(String glob)
Converts a Unix-style glob to a regular expression.
|
GlobEntry |
match(String text) |
void |
removeBase(org.apache.commons.vfs2.FileObject base)
Remove a directory from the list that is is searched.
|
protected Collection<GlobEntry> |
scanBase(org.apache.commons.vfs2.FileObject base) |
addBase, checkAndAddBase, checkAndAddBase, getAllEntities, getBases, getBasesInReverse, getEntities, getEntity, listDirsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddBase, getAllEntities, getBases, getEntities, getEntityprotected Collection<GlobEntry> scanBase(org.apache.commons.vfs2.FileObject base) throws IOException
scanBase in class AbstractFreedesktopService<GlobEntry>IOExceptionpublic void removeBase(org.apache.commons.vfs2.FileObject base)
FreedesktopServiceremoveBase in interface FreedesktopService<GlobEntry>removeBase in class AbstractFreedesktopService<GlobEntry>base - base directory to remove from the list that is searched#addBase(File)public GlobEntry match(String text) throws MagicRequiredException
match in interface GlobServiceMagicRequiredExceptionpublic static String globToRE(String glob)
? becomes ., * becomes .*, {aa,bb} becomes (aa|bb).
glob - The glob patternpublic GlobEntry getByMimeType(String mimeType)
getByMimeType in interface GlobServiceCopyright © 2016. All rights reserved.