ModeShape Distribution 3.0.0.CR1

org.modeshape.web.jcr.rest.client
Class Utils

java.lang.Object
  extended by org.modeshape.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.
 
Method Summary
static boolean equivalent(Object thisObj, Object thatObj)
           
static String getMimeType(File file)
          Deprecated. Use another MIME type detection framework, such as Tika
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Don't allow construction.

Method Detail

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

@Deprecated
public static String getMimeType(File file)
Deprecated. Use another MIME type detection framework, such as Tika

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)

ModeShape Distribution 3.0.0.CR1

Copyright © 2008-2012 JBoss, a division of Red Hat. All Rights Reserved.