Main Page Cookbook/Overview ImageMeister the jcprops file Licensing Binary Installation & Configuration [ Win · Mac · Nix ] Changes Public API Source Code Main Page Java [ Common · Win · Mac · Nix ] Native Code [ Common · Win · Mac · Nix ] Manifest Native Code Overviews [ Common · Win · Mac · Nix · Strings ] Macros [ General · Native Macros ] Walkthroughs [ Java only · Java and native ] Building [ Win · Mac · Nix ] Distribution Issues

    All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.FileUtilsHolderMRJ

    java.lang.Object
       |
       +----com.jconfig.mac.FileUtilsHolderMRJ

Summary

    class  FileUtilsHolderMRJ
         extends java.lang.Object
    {
              // Fields 2
         private static final String copyrightString;
         private static FileUtilsI utils;

              // Constructors 1
         public FileUtilsHolderMRJ();

              // Methods 5
         static String getAbsolutePath(File);
         static FileUtilsI getFileUtils();
         static String getName(File);
         static String getPath(File);
         static void setFileUtils(FileUtilsI);

    }

Singleton which maintains a FileUtilsI object.

For each method of the FileUtilsI interface, if this class holds a FileUtilsI object, calls are forwarded to the FileUtilsI object. If the FileUtilsI object is null, the corresponding method in the java File class is called.

This class is used by the classes which get a full path from a java File object. Currently, this is used by:

    	FileRegistryMRJ
    	AppCommandMRJodoc
    	AppCommandMRJpdoc

Author:
  Copyright (c) 1997,1998,1999,2000 Samizdat Productions. All Rights Reserved.

Fields

### · copyrightString | Summary | Top

       private static final String copyrightString

### · utils | Summary | Top

       private static FileUtilsI utils

Constructors

### · FileUtilsHolderMRJ | Summary | Top

       public FileUtilsHolderMRJ()

> Default constructor

Methods

### · setFileUtils | Summary | Top

       static void setFileUtils(FileUtilsI c)

### · getFileUtils | Summary | Top

       static FileUtilsI getFileUtils()

### · getPath | Summary | Top

       static String getPath(File fl)

> If utils isn't null, calls the utils's getPath() method and returns the result Otherwise, returns fl.getPath()

### · getAbsolutePath | Summary | Top

       static String getAbsolutePath(File fl)

> If utils isn't null, calls the utils's getAbsolutePath() method and returns the result Otherwise, returns fl.getAbsolutePath()

### · getName | Summary | Top

       static String getName(File fl)

> If utils isn't null, calls the utils's getName() method and returns the result Otherwise, returns fl.getName()

    All Packages  This Package  Class Hierarchy  Class Search  Index

Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7