com.ptc.windchill.cadx.common.preference
Class FileUtil

java.lang.Object
  extended bycom.ptc.windchill.cadx.common.preference.FileUtil

public class FileUtil
extends Object


Field Summary
private static boolean debug
           
private static String RESOURCE
           
 
Constructor Summary
FileUtil()
           
 
Method Summary
static String checkUrlPath(String p)
          Checks the "p" for a valid URL and returns it if found, otherwise, it creates a valid file URL out of the "p" supplied.
static String getLocalFilePath(String mUrl)
           
static String getLocalFilePath(String mUrl, boolean bDirPath)
          Gets the local file path associated with the mUrl supplied, on Win32 it changes all file-separators to "\".
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

private static final boolean debug
See Also:
Constant Field Values

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values
Constructor Detail

FileUtil

public FileUtil()
Method Detail

getLocalFilePath

public static String getLocalFilePath(String mUrl,
                                      boolean bDirPath)
Gets the local file path associated with the mUrl supplied, on Win32 it changes all file-separators to "\".


checkUrlPath

public static String checkUrlPath(String p)
Checks the "p" for a valid URL and returns it if found, otherwise, it creates a valid file URL out of the "p" supplied. In Applet Mode it appends "p" to CODEBASE


getLocalFilePath

public static String getLocalFilePath(String mUrl)