com.sas.hls.client.utils
Class RelativePathUtility

java.lang.Object
  extended by com.sas.hls.client.utils.RelativePathUtility

public abstract class RelativePathUtility
extends Object

Utility class to generate a relative path for a file relative to the provided base path. Note relative paths are only supported within jobs.


Constructor Summary
RelativePathUtility()
           
 
Method Summary
static String getRelativePath(String basePath, String absolutePath)
          Generate a relative path for a file relative to the base path.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RelativePathUtility

public RelativePathUtility()
Method Detail

getRelativePath

public static String getRelativePath(String basePath,
                                     String absolutePath)
Generate a relative path for a file relative to the base path.

Parameters:
basePath - Base container location.
absolutePath - Absolute path of the file to make relative to the base path.
Returns:
Relative path of the file relative to the base path


Copyright (c) 2013, SAS Institute Inc., Cary, NC, USA