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.ConfigListFile
java.lang.Object
   |
   +----com.jconfig.ConfigListFile

  Summary

public class  ConfigListFile
     extends java.lang.Object
     implements com.jconfig.ConfigList
{
          // Fields 3
     private byte[] buffer;
     private int bufferLen;
     private static final String copyrightString;

          // Constructors 1
     public ConfigListFile(File, String, int);

          // Methods 4
     public FinderInfo[] findMatches(FileExtension, int, int);
     public FileExtension[] findMatches(FinderInfo, int, int);
     public int iterate(ConfigEntryVisitor);
     private boolean tryCreateFromFile(File, String);
}

Used to obtain information from 'jconfig.cfg', which contains the contents of the Internet Config file mapping table. This is used in four situations: by FileRegistryPlain, on Windows, on Unix, and on Mac if Internet Config is not installed.

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




  Fields

· copyrightString

Summary  |  Top

   private static final String copyrightString


· buffer

Summary  |  Top
   private byte[] buffer


· bufferLen

Summary  |  Top
   private int bufferLen


  Constructors

· ConfigListFile

Summary  |  Top

   public ConfigListFile(File configDir, 
                         String fileName, 
                         int creator) 

Reads the contents of the given file into an internal buffer.



  Methods

· tryCreateFromFile

Summary  |  Top
   private boolean tryCreateFromFile(File configDir, 
                                     String fileName) 


· iterate

Summary  |  Top
   public int iterate(ConfigEntryVisitor fdv) 

For each entry of the buffer, creates a IConfigEntryBinary object, and calls the fdv's visit() method with this object.

Implements:
iterate in interface ConfigList


· findMatches

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

Map a FinderInfo object to zero or more FileExtension objects. May return null if none could be found.

Implements:
findMatches in interface ConfigList


· findMatches

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

Map a FileExtension object to zero or more FinderInfo objects. May return null if none could be found.

Implements:
findMatches in interface ConfigList


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