org.eclipse.rse.services.clientserver
Class PathUtility
java.lang.Object
org.eclipse.rse.services.clientserver.PathUtility
- public class PathUtility
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PathUtility
public PathUtility()
normalizeWindows
public static String normalizeWindows(String path)
normalizeUnix
public static String normalizeUnix(String path)
normalizeVirtualWindows
public static String normalizeVirtualWindows(String path)
normalizeVirtualUnix
public static String normalizeVirtualUnix(String path)
normalizeUnknown
public static String normalizeUnknown(String path)
getSeparator
public static String getSeparator(String path)
enQuoteUnix
public static String enQuoteUnix(String s)
- Quotes a string such that it can be used in a remote UNIX shell.
This has been tested with sh, bash and tcsh shells.
On Windows, special characters likes quotes and dollar sign. and
- most importantly - the backslash will not be quoted correctly.
Newline is only quoted correctly in tcsh. But since this is mainly
intended for file names, it should work OK in almost every case.
- Parameters:
s - String to be quoted
- Returns:
- quoted string, or original if no quoting was necessary.
Copyright (c) IBM Corporation and others 2000, 2006. All Rights Reserved.