public final class Utils extends Object
Utils class contains common utilities used by this project.| Constructor and Description |
|---|
Utils()
Don't allow construction.
|
| Modifier and Type | Method and Description |
|---|---|
static boolean |
equivalent(Object thisObj,
Object thatObj) |
static String |
getMimeType(File file)
Deprecated.
Use another MIME type detection framework, such as Tika
|
public static boolean equivalent(Object thisObj, Object thatObj)
thisObj - an object being compared (may be null)thatObj - the other object being compared (may be null)true if both objects are null or both are not null and equal@Deprecated public static String getMimeType(File file)
file - the file whose mime type is being requested"application/octet-stream") if one can't be determined from
the file extension (never null)Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.