org.jboss.dna.web.jcr.rest.client
Class Utils
java.lang.Object
org.jboss.dna.web.jcr.rest.client.Utils
public final class Utils
- extends Object
The Utils class contains common utilities used by this project.
|
Constructor Summary |
Utils()
Don't allow construction. |
Utils
public Utils()
- Don't allow construction.
equivalent
public static boolean equivalent(Object thisObj,
Object thatObj)
- Parameters:
thisObj - an object being compared (may be null)thatObj - the other object being compared (may be null)
- Returns:
true if both objects are null or both are not null and equal
getMimeType
public static String getMimeType(File file)
- Parameters:
file - the file whose mime type is being requested
- Returns:
- the mime type or the default mime type (
"application/octet-stream") if one can't be determined from
the file extension (never null)
Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.