de.intarsys.tools.environment.file
Class StandardFileEnvironment

java.lang.Object
  extended by de.intarsys.tools.environment.file.StandardFileEnvironment
All Implemented Interfaces:
IFileEnvironment

public class StandardFileEnvironment
extends java.lang.Object
implements IFileEnvironment


Constructor Summary
StandardFileEnvironment()
           
StandardFileEnvironment(java.io.File pBaseDir, java.io.File pProfileDir)
           
StandardFileEnvironment(java.io.File pBaseDir, java.io.File pProfileDir, java.io.File pTempDir, java.io.File pWorkingDir)
           
 
Method Summary
 java.io.File getBaseDir()
          The platform base directory.
 java.io.File getProfileDir()
          Some user specific private directory.
 java.io.File getTempDir()
          The directory for temporary files.
 java.io.File getWorkingDir()
          The working directory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardFileEnvironment

public StandardFileEnvironment()

StandardFileEnvironment

public StandardFileEnvironment(java.io.File pBaseDir,
                               java.io.File pProfileDir)

StandardFileEnvironment

public StandardFileEnvironment(java.io.File pBaseDir,
                               java.io.File pProfileDir,
                               java.io.File pTempDir,
                               java.io.File pWorkingDir)
Method Detail

getBaseDir

public java.io.File getBaseDir()
Description copied from interface: IFileEnvironment
The platform base directory.

Normally this will be equal to the VM "user.dir" property.

Specified by:
getBaseDir in interface IFileEnvironment
Returns:
The platform base directory.

getProfileDir

public java.io.File getProfileDir()
Description copied from interface: IFileEnvironment
Some user specific private directory.

Normally this will be equal to the VM "user.home" property or an application defined subdirectory.

Specified by:
getProfileDir in interface IFileEnvironment
Returns:
Some private directory.

getTempDir

public java.io.File getTempDir()
Description copied from interface: IFileEnvironment
The directory for temporary files.

Normally this will be equal to the VM "java.io.tmpdir" property.

Specified by:
getTempDir in interface IFileEnvironment
Returns:
The directory for temporary files.

getWorkingDir

public java.io.File getWorkingDir()
Description copied from interface: IFileEnvironment
The working directory.

Normally this will be equal to the VM "user.dir" property.

Specified by:
getWorkingDir in interface IFileEnvironment
Returns:
The working directory.