com.starbase.util
Class BaseFileUtils

java.lang.Object
  |
  +--com.starbase.util.BaseFileUtils

public final class BaseFileUtils
extends java.lang.Object


Method Summary
static java.lang.String fullyResolvedPath(java.lang.String name, java.lang.String pathDelim)
           
static java.lang.String getAbsolutePath(java.lang.String path)
          Returns the absolute pathname of the given pathname.
static java.lang.String getCanonicalPathName(java.lang.String aPathName, boolean bCaseSensitive)
           
static boolean isAbsolute(java.lang.String path)
          Tests if the given pathname is an absolute pathname.
static boolean isBinary(java.io.File f)
          Returns true if the file is considered to be binary.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isBinary

public static boolean isBinary(java.io.File f)
                        throws java.io.IOException
Returns true if the file is considered to be binary. The definition of binary is that the file has at least one null (0x0) character.

java.io.IOException

isAbsolute

public static final boolean isAbsolute(java.lang.String path)
Tests if the given pathname is an absolute pathname. The definition of an absolute pathname is system dependent. For example, on UNIX, a pathname is absolute if its first character is the separator character. On Windows platforms, a pathname is absolute if its first character is an ASCII '\' or '/', or if it begins with a letter followed by a colon.

Parameters:
path - A pathname.
Returns:
true if the pathname indicated by the File object is an absolute pathname; false otherwise.

getAbsolutePath

public static final java.lang.String getAbsolutePath(java.lang.String path)
Returns the absolute pathname of the given pathname. If the pathname is an absolute pathname, then return the pathname. Otherwise, return a pathname that is a concatenation of the current user directory, the separator character, and the pathname of this file object.

The system property user.dir contains the current user directory.

Parameters:
path - A pathname.
Returns:
a system-dependent absolute pathname.

getCanonicalPathName

public static final java.lang.String getCanonicalPathName(java.lang.String aPathName,
                                                          boolean bCaseSensitive)

fullyResolvedPath

public static final java.lang.String fullyResolvedPath(java.lang.String name,
                                                       java.lang.String pathDelim)


StarTeam SDK 10.4, Build 36
Copyright © 2003-2008 Borland Software Corporation. All rights reserved.