com.antiaction.mayhem.core
Class Resource

java.lang.Object
  extended by com.antiaction.mayhem.core.Resource

public class Resource
extends java.lang.Object

Resource.

Version:
1.00
Author:
Nicholas Clarke

Constructor Summary
Resource()
           
 
Method Summary
static java.lang.String toAbsPath(java.lang.String path)
          Convert a path with possible relative subpaths ("."/"..") to absolute.
static boolean toAbsPathList(java.util.List arrRelPath, java.util.List arrAbsPath)
          Given a List representing a path with possible relative elements returns a List with only absolute elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Resource

public Resource()
Method Detail

toAbsPath

public static java.lang.String toAbsPath(java.lang.String path)
Convert a path with possible relative subpaths ("."/"..") to absolute.

Parameters:
path - relative path.
Returns:
absolute path or null if an error occured.
See Also:
toAbsPathList(List, List)

toAbsPathList

public static boolean toAbsPathList(java.util.List arrRelPath,
                                    java.util.List arrAbsPath)
Given a List representing a path with possible relative elements returns a List with only absolute elements.

Parameters:
arrRelPath - List with possible relative subs paths.
arrAbsPath - List with absolute path.
Returns:
a List with no relative elements.
See Also:
toAbsPath(String)


Copyright © 2001-2004 Nicholas Clarke. All Rights Reserved.