RSE
Release 1.0

org.eclipse.rse.subsystems.files.core.model
Class RemotePathUtil

java.lang.Object
  extended byorg.eclipse.rse.subsystems.files.core.model.RemotePathUtil

public class RemotePathUtil
extends Object

Singleton utility class for remote paths.


Method Summary
 IPath getClientTempLocationForFile(IRemotePath remotePath)
          Returns the path of the temp location corresponding to the remote path.
static RemotePathUtil getInstance()
          Returns the singleton instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static RemotePathUtil getInstance()
Returns the singleton instance.

Returns:
the singleton instance.

getClientTempLocationForFile

public IPath getClientTempLocationForFile(IRemotePath remotePath)
Returns the path of the temp location corresponding to the remote path. The remote path must represent a file (i.e. can not be a directory). The temp path is simply the default temp location on the client system (given by system property "java.io.tmpdir"), with the name of the remote file appended (not the path of the remote file).

Parameters:
remotePath - the remote path.
Returns:
the path of the temporary file, or null if the default temporary location is not available.

RSE
Release 1.0

Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.