public class DefaultMagicService extends AbstractFreedesktopService<MagicEntry> implements MagicService
bases, basesList| Constructor and Description |
|---|
DefaultMagicService() |
| Modifier and Type | Method and Description |
|---|---|
MagicEntry |
getMagicEntryForMimeType(String mimeType) |
void |
removeBase(org.apache.commons.vfs2.FileObject base)
Remove a directory from the list that is is searched.
|
protected Collection<MagicEntry> |
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<MagicEntry> scanBase(org.apache.commons.vfs2.FileObject base) throws IOException
scanBase in class AbstractFreedesktopService<MagicEntry>IOExceptionpublic void removeBase(org.apache.commons.vfs2.FileObject base)
FreedesktopServiceremoveBase in interface FreedesktopService<MagicEntry>removeBase in class AbstractFreedesktopService<MagicEntry>base - base directory to remove from the list that is searched#addBase(File)public MagicEntry getMagicEntryForMimeType(String mimeType)
Copyright © 2016. All rights reserved.