com.ptc.wvs.client.pview
Class PViewUtilitiesWindchill
java.lang.Object
com.ptc.wvs.client.pview.PViewUtilitiesWindchill
- public class PViewUtilitiesWindchill
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
debug
public static boolean debug
WINDOWS_TEMP
private static final String WINDOWS_TEMP
- See Also:
- Constant Field Values
UNIX_HOME
private static final String UNIX_HOME
- See Also:
- Constant Field Values
fa
private static FileAccess fa
vr
private static com.ptc.wvs.client.beans.viewerResource vr
PViewUtilitiesWindchill
public PViewUtilitiesWindchill()
setDebug
public static void setDebug(Boolean flag)
getPropertyValue
public static String getPropertyValue(String name)
getEnv
public static String getEnv(String name)
loadLibrary
public static void loadLibrary(String name)
throws Exception
- Throws:
Exception
mkdir
public static void mkdir(String directory)
throws Exception
- Throws:
Exception
exists
public static Boolean exists(File file)
delete
public static void delete(File file)
getFileOutputStream
public static FileOutputStream getFileOutputStream(File file)
throws IOException
- Throws:
IOException
getLocalizedMessage
public static String getLocalizedMessage(String resourceBundle,
String messageKey,
Object[] textInserts,
Locale locale)
getTempDirectory
public static String getTempDirectory()
- Determines a temporary directory. If the "workspacePath" preference is set,
then that will be returned, otherwise the system temporary directory for
the platform will be returned.
- Returns:
- the temporary directory
parseDirectory
public static String parseDirectory(String path)
- Ensures that the directory path specificed is valid. That the correct file system delimiter
is applied, and trailing directory levels are removed
- Parameters:
path
- the directory path
- Returns:
- a valid directory path
isWindows
public static boolean isWindows()
- Determines if currently executing on Windows.
- Returns:
- true if executing on Windows
getDefaultDirectory
public static String getDefaultDirectory()
- Returns the system temporary directory
- Returns:
- a valid temporary directory