Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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

    java.lang.Object
      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)`

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

    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`)

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| ModeShape Distribution 3.0.0.Alpha6
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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