hec.environment
Class EnvironmentImpl

java.lang.Object
  extended byhec.environment.EnvironmentImpl
All Implemented Interfaces:
Environment, StdPathnameConstants, StdPathnames
Direct Known Subclasses:
RmiEnvironmentImpl

public class EnvironmentImpl
extends java.lang.Object
implements Environment

Operating system independent implementation of the Environment interface

See Also:
Environment

Field Summary
 
Fields inherited from interface hec.environment.StdPathnameConstants
COMMON_APPDATA, COMMON_DOCS, PROGRAM_INSTALL, USER_APPDATA, USER_DOCS, USER_HOME
 
Constructor Summary
EnvironmentImpl()
           
 
Method Summary
 java.lang.String getCommonAppData()
          Get the operating-system dependent shared application data pathname.
 java.lang.String getCommonDocs()
          Get the operating-system dependent shared docuements pathname.
 java.lang.String getProgramInstall()
          Get the operating-system dependent program installation pathname.
 java.lang.String getStdPathname(int pathname_id)
          Get the operating-system dependent pathname represented by the pathname_id.
 java.lang.String getUserAppData()
          Get the operating-system dependent user application data pathname.
 java.lang.String getUserDocs()
          Get the operating-system dependent user docuements pathname.
 java.lang.String getUserHome()
          Get the operating-system dependent user home pathname.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnvironmentImpl

public EnvironmentImpl()
                throws java.lang.Exception
Method Detail

getStdPathname

public java.lang.String getStdPathname(int pathname_id)
                                throws java.lang.Exception
Get the operating-system dependent pathname represented by the pathname_id.

Specified by:
getStdPathname in interface StdPathnames
Parameters:
pathname_id - The constant representing the desired pathname.
Returns:
The desired pathname.
Throws:
java.lang.Exception

getUserHome

public java.lang.String getUserHome()
                             throws java.lang.Exception
Get the operating-system dependent user home pathname.

Specified by:
getUserHome in interface StdPathnames
Returns:
The user home pathname.
Throws:
java.lang.Exception

getCommonDocs

public java.lang.String getCommonDocs()
                               throws java.lang.Exception
Get the operating-system dependent shared docuements pathname.

Specified by:
getCommonDocs in interface StdPathnames
Returns:
The shared documents pathname.
Throws:
java.lang.Exception

getUserAppData

public java.lang.String getUserAppData()
                                throws java.lang.Exception
Get the operating-system dependent user application data pathname.

Specified by:
getUserAppData in interface StdPathnames
Returns:
The user application data pathname.
Throws:
java.lang.Exception

getUserDocs

public java.lang.String getUserDocs()
                             throws java.lang.Exception
Get the operating-system dependent user docuements pathname.

Specified by:
getUserDocs in interface StdPathnames
Returns:
The user documents pathname.
Throws:
java.lang.Exception

getCommonAppData

public java.lang.String getCommonAppData()
                                  throws java.lang.Exception
Get the operating-system dependent shared application data pathname.

Specified by:
getCommonAppData in interface StdPathnames
Returns:
The shared application data pathname.
Throws:
java.lang.Exception

getProgramInstall

public java.lang.String getProgramInstall()
                                   throws java.lang.Exception
Get the operating-system dependent program installation pathname.

Specified by:
getProgramInstall in interface StdPathnames
Returns:
The program installation pathname.
Throws:
java.lang.Exception