com.ptc.wvs.client.pview
Class PViewUtilities

java.lang.Object
  extended bycom.ptc.wvs.client.pview.PViewUtilities

public class PViewUtilities
extends Object


Field Summary
private static boolean debug
           
private static Method getDeleteLocal
           
private static Method getDeleteWindchill
           
private static Method getEnvLocal
           
private static Method getEnvWindchill
           
private static Method getExistsLocal
           
private static Method getExistsWindchill
           
private static Method getFileOutputStreamLocal
           
private static Method getFileOutputStreamWindchill
           
private static Method getLoadLibraryLocal
           
private static Method getLoadLibraryWindchill
           
private static Method getLocalizedMessageLocal
           
private static Method getLocalizedMessageWindchill
           
private static Method getMkdirLocal
           
private static Method getMkdirWindchill
           
private static Method getPropertyValueLocal
           
private static Method getPropertyValueWindchill
           
private static Method getTempDirectoryLocal
           
private static Method getTempDirectoryWindchill
           
static boolean localAvailable
           
private static Method setDebugLocal
           
private static Method setDebugWindchill
           
static boolean useWindchill
           
private static Class utilitiesLocal
           
private static Class utilitiesWindchill
           
static boolean windchillAvailable
           
 
Constructor Summary
PViewUtilities()
           
 
Method Summary
static void delete(File file)
           
static boolean exists(File file)
           
static boolean getDebug()
           
static String getEnv(String name)
           
static FileOutputStream getFileOutputStream(File file)
           
static String getLocalizedMessage(String resourceBundle, String messageKey, Object[] textInserts, Locale locale)
           
static String getPropertyValue(String name)
           
static String getTempDirectory()
           
static void loadLibrary(String name)
           
static void mkdir(String directory)
           
static void setDebug(boolean flag)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

useWindchill

public static boolean useWindchill

debug

private static boolean debug

windchillAvailable

public static boolean windchillAvailable

localAvailable

public static boolean localAvailable

utilitiesWindchill

private static Class utilitiesWindchill

getPropertyValueWindchill

private static Method getPropertyValueWindchill

getEnvWindchill

private static Method getEnvWindchill

getLoadLibraryWindchill

private static Method getLoadLibraryWindchill

getMkdirWindchill

private static Method getMkdirWindchill

getExistsWindchill

private static Method getExistsWindchill

getDeleteWindchill

private static Method getDeleteWindchill

getFileOutputStreamWindchill

private static Method getFileOutputStreamWindchill

getLocalizedMessageWindchill

private static Method getLocalizedMessageWindchill

setDebugWindchill

private static Method setDebugWindchill

getTempDirectoryWindchill

private static Method getTempDirectoryWindchill

utilitiesLocal

private static Class utilitiesLocal

getPropertyValueLocal

private static Method getPropertyValueLocal

getEnvLocal

private static Method getEnvLocal

getLoadLibraryLocal

private static Method getLoadLibraryLocal

getMkdirLocal

private static Method getMkdirLocal

getExistsLocal

private static Method getExistsLocal

getDeleteLocal

private static Method getDeleteLocal

getFileOutputStreamLocal

private static Method getFileOutputStreamLocal

getLocalizedMessageLocal

private static Method getLocalizedMessageLocal

setDebugLocal

private static Method setDebugLocal

getTempDirectoryLocal

private static Method getTempDirectoryLocal
Constructor Detail

PViewUtilities

public PViewUtilities()
Method Detail

setDebug

public static void setDebug(boolean flag)

getDebug

public static boolean getDebug()

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()