org.ow2.petals.registry.api.util
Class ResourceUtil

java.lang.Object
  extended by org.ow2.petals.registry.api.util.ResourceUtil

public class ResourceUtil
extends java.lang.Object

Author:
chamerling - eBM WebSourcing

Method Summary
static java.lang.String getRealPath(java.lang.String path)
          Add the root character if not available
static java.lang.String getResourceName(java.lang.String path)
          Get the file name from the resource path
static boolean isDirectory(java.lang.String path)
          path is a directory if last character is a /
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getResourceName

public static final java.lang.String getResourceName(java.lang.String path)
Get the file name from the resource path

Parameters:
path -
Returns:

getRealPath

public static final java.lang.String getRealPath(java.lang.String path)
Add the root character if not available

Parameters:
path -
Returns:

isDirectory

public static boolean isDirectory(java.lang.String path)
path is a directory if last character is a /

Parameters:
path -
Returns:


Copyright © 2005-2011 Petals Link (EBM Websourcing). All Rights Reserved.