Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     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 · OSX ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.FileRegistryPlain
java.lang.Object
   |
   +----com.jconfig.FileRegistryPlain

  Summary

class  FileRegistryPlain
     extends java.lang.Object
     implements com.jconfig.FileRegistryI
{
          // Fields 4
     private ConfigList config;
     private static final String copyrightString;
     private int direction;
     private PlatformInfoI platformInfo;

          // Constructors 1
     FileRegistryPlain(File, int) throws ConfigException;

          // Methods 22
     public int createAlias(DiskObject, File, int, int) throws FileNotFoundException, DiskFileException;
     public AppFile createAppFile(File) throws FileNotFoundException, DiskFileException;
     public DiskObject createDiskObject(File, int) throws FileNotFoundException, DiskFileException;
     public FileExtension[] findExtensions(FinderInfo, int);
     public FinderInfo[] findFinderInfo(FileExtension, int);
     public AppFile[] getApps(FileExtension, int, int);
     public AppFile[] getApps(FinderInfo, int, int);
     public AppFile[] getApps(String, int, int);
     public int getDirection();
     public FileSystem[] getFileSystems(int, int);
     public FileType getFileType(File) throws FileNotFoundException, DiskFileException;
     public FileUtilsI getFileUtils();
     public Monitor getMainMonitor();
     public Monitor[] getMonitors();
     public PlatformInfoI getPlatformInfo();
     public AppProcess[] getProcesses(int, int);
     public DiskVolume[] getVolumes();
     public int iterate(ConfigEntryVisitor);
     public int launchURL(String, int, String[]);
     public DiskObject resolveAlias(DiskAlias, int) throws FileNotFoundException, DiskFileException;
     public void setDirection(int);
     public void setFileUtils(FileUtilsI);
}

This is a minimal implementation of the FileRegistryI interface.

As indicated in the FileRegistry documentation, a class implementing the FileRegistryI interface is used by the FileRegistry to handle all its calls.

This class is only used on unsupported platforms, or if a platform-specific object which implements FileRegistryI could not be created. Only a small set of functionality is provided; most methods return null or -1.

FileRegistryFactory creates this object on behalf of the FileRegistry.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




  Fields

· copyrightString

Summary  |  Top

   private static final String copyrightString


· config

Summary  |  Top
   private ConfigList config


· platformInfo

Summary  |  Top
   private PlatformInfoI platformInfo


· direction

Summary  |  Top
   private int direction


  Constructors

· FileRegistryPlain

Summary  |  Top

   FileRegistryPlain(File curDir, 
                     int creator)  throws ConfigException

Creates a ConfigListFile object using the file 'jconfig.cfg'. If that file can't be found, default values, stored internally are used. If an error occurs, throws a ConfigException.



  Methods

· getPlatformInfo

Summary  |  Top
   public PlatformInfoI getPlatformInfo() 

Indicates which platform we're running on.

Returns:
a PlatformInfoI object containing information on the current platform/VM
Implements:
getPlatformInfo in interface FileRegistryI


· findExtensions

Summary  |  Top
   public FileExtension[] findExtensions(FinderInfo fInfo, 
                                         int maxToReturn) 

Calls the ConfigListFile to map from a FinderInfo to zero or more FileExtensions.

Implements:
findExtensions in interface FileRegistryI


· findFinderInfo

Summary  |  Top
   public FinderInfo[] findFinderInfo(FileExtension ext, 
                                      int maxToReturn) 

Calls the ConfigListFile to map from a FileExtensions to zero or more FinderInfo.

Implements:
findFinderInfo in interface FileRegistryI


· iterate

Summary  |  Top
   public int iterate(ConfigEntryVisitor fdv) 

Calls the ConfigListFile to iterate over the ConfigListFile entries.

Implements:
iterate in interface FileRegistryI


· getApps

Summary  |  Top
   public AppFile[] getApps(String appName, 
                            int maxToReturn, 
                            int flags) 

Always returns null.

Implements:
getApps in interface FileRegistryI


· getApps

Summary  |  Top
   public AppFile[] getApps(FileExtension ext, 
                            int maxToReturn, 
                            int flags) 

Always returns null.

Implements:
getApps in interface FileRegistryI


· getApps

Summary  |  Top
   public AppFile[] getApps(FinderInfo finfo, 
                            int maxToReturn, 
                            int flags) 

Always returns null.

Implements:
getApps in interface FileRegistryI


· launchURL

Summary  |  Top
   public int launchURL(String url, 
                        int flags, 
                        String[] preferredBrowsers) 

Always returns -1.

Implements:
launchURL in interface FileRegistryI


· getVolumes

Summary  |  Top
   public DiskVolume[] getVolumes() 

Always returns null.

Implements:
getVolumes in interface FileRegistryI


· createAppFile

Summary  |  Top
   public AppFile createAppFile(File fl)  throws FileNotFoundException, DiskFileException

Always returns null.

Implements:
createAppFile in interface FileRegistryI


· createDiskObject

Summary  |  Top
   public DiskObject createDiskObject(File fl, 
                                      int flags)  throws FileNotFoundException, DiskFileException

Always returns null.

Implements:
createDiskObject in interface FileRegistryI


· createAlias

Summary  |  Top
   public int createAlias(DiskObject target, 
                          File newAlias, 
                          int creator, 
                          int flags)  throws FileNotFoundException, DiskFileException

Always returns -1.

Implements:
createAlias in interface FileRegistryI


· resolveAlias

Summary  |  Top
   public DiskObject resolveAlias(DiskAlias da, 
                                  int flags)  throws FileNotFoundException, DiskFileException

Always returns null.

Implements:
resolveAlias in interface FileRegistryI


· getFileType

Summary  |  Top
   public FileType getFileType(File fl)  throws FileNotFoundException, DiskFileException

Always returns null.

Implements:
getFileType in interface FileRegistryI


· getDirection

Summary  |  Top
   public int getDirection() 
Implements:
getDirection in interface FileRegistryI


· setDirection

Summary  |  Top
   public void setDirection(int dir) 
Implements:
setDirection in interface FileRegistryI


· getMonitors

Summary  |  Top
   public Monitor[] getMonitors() 

Returns an array containing one MonitorPlain object.

Implements:
getMonitors in interface FileRegistryI


· getMainMonitor

Summary  |  Top
   public Monitor getMainMonitor() 

Returns a MonitorPlain object.

Implements:
getMainMonitor in interface FileRegistryI


· getProcesses

Summary  |  Top
   public AppProcess[] getProcesses(int maxToReturn, 
                                    int flags) 

Always returns null.

Implements:
getProcesses in interface FileRegistryI


· getFileSystems

Summary  |  Top
   public FileSystem[] getFileSystems(int maxToReturn, 
                                      int flags) 

Always returns null.

Implements:
getFileSystems in interface FileRegistryI


· setFileUtils

Summary  |  Top
   public void setFileUtils(FileUtilsI fi) 
Implements:
setFileUtils in interface FileRegistryI


· getFileUtils

Summary  |  Top
   public FileUtilsI getFileUtils() 
Implements:
getFileUtils in interface FileRegistryI


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7