public class MagicEntry extends ArrayList<MagicEntry.Pattern> implements FreedesktopEntity, Comparable<MagicEntry>
| Modifier and Type | Class and Description |
|---|---|
static class |
MagicEntry.Pattern |
modCount| Constructor and Description |
|---|
MagicEntry() |
MagicEntry(String mimeType,
int priority) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(MagicEntry o) |
String |
getInternalName() |
int |
getPriority() |
boolean |
match(org.apache.commons.vfs2.FileObject file) |
void |
setMIMEType(String mimeType) |
void |
setPriority(int priority) |
String |
toString() |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, forEach, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeIf, removeRange, replaceAll, retainAll, set, size, sort, spliterator, subList, toArray, toArray, trimToSizeequals, hashCodecontainsAllfinalize, getClass, notify, notifyAll, wait, wait, waitcontainsAll, equals, hashCodeparallelStream, streampublic MagicEntry(String mimeType, int priority)
public MagicEntry()
public void setMIMEType(String mimeType)
public int getPriority()
public void setPriority(int priority)
public String getInternalName()
getInternalName in interface FreedesktopEntitypublic boolean match(org.apache.commons.vfs2.FileObject file)
throws IOException
IOExceptionpublic String toString()
toString in class AbstractCollection<MagicEntry.Pattern>public int compareTo(MagicEntry o)
compareTo in interface Comparable<MagicEntry>Copyright © 2016. All rights reserved.