Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.mitre.cvw
Class WindowsDocServerUtils  view WindowsDocServerUtils download WindowsDocServerUtils.java

java.lang.Object
  extended byorg.mitre.cvw.NPDocServerUtils
      extended byorg.mitre.cvw.WindowsDocServerUtils

public class WindowsDocServerUtils
extends NPDocServerUtils

native code utilities for Windows platforms This class extends the NPDocServerUtils class and provides the interfaces for starting programs on a Windows machine. Will access native functions.

Version:
1

Constructor Summary
WindowsDocServerUtils()
           
 
Method Summary
 java.lang.String formatText(java.lang.String text)
          Replaces with for windows platforms
 java.lang.String getEnv(java.lang.String varname)
          Gets the value of an environmental variable.
 java.lang.String getLaunchProgram(java.lang.String suffix, boolean readonly)
          Gets a companion program for a particular file.
private  java.lang.String getNativeEnv(java.lang.String varname)
          get an environmental variable.
private  java.lang.String getNativeLaunchPartner(java.lang.String suffix)
          Finds the program information in the registry
 java.lang.String getUserBaseDir()
          Finds the base directory to place user checkout dirs
 boolean setLock(java.lang.String path, int status)
          Sets the read/write permissions on a file
private  boolean setNativeLock(java.lang.String path, int status)
          Sets the read/write permissions on a file.
 
Methods inherited from class org.mitre.cvw.NPDocServerUtils
getFileTypeNames, getInstance, getMimeType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsDocServerUtils

public WindowsDocServerUtils()
Method Detail

getNativeLaunchPartner

private java.lang.String getNativeLaunchPartner(java.lang.String suffix)
Finds the program information in the registry


setNativeLock

private boolean setNativeLock(java.lang.String path,
                              int status)
Sets the read/write permissions on a file.


getNativeEnv

private java.lang.String getNativeEnv(java.lang.String varname)
get an environmental variable.


getLaunchProgram

public java.lang.String getLaunchProgram(java.lang.String suffix,
                                         boolean readonly)
Gets a companion program for a particular file.

Specified by:
getLaunchProgram in class NPDocServerUtils

getUserBaseDir

public java.lang.String getUserBaseDir()
Finds the base directory to place user checkout dirs

Specified by:
getUserBaseDir in class NPDocServerUtils

setLock

public boolean setLock(java.lang.String path,
                       int status)
Sets the read/write permissions on a file

Specified by:
setLock in class NPDocServerUtils

getEnv

public java.lang.String getEnv(java.lang.String varname)
Gets the value of an environmental variable.

Specified by:
getEnv in class NPDocServerUtils

formatText

public java.lang.String formatText(java.lang.String text)
Replaces with for windows platforms

Overrides:
formatText in class NPDocServerUtils