net.groboclown.util.jplugin.v2
Class FileIdentifiers

java.lang.Object
  |
  +--net.groboclown.util.jplugin.v2.FileIdentifiers

public class FileIdentifiers
extends Object

Searches for all file types using the given base URL

Version:
0.9.0 Alpha
Author:
Matt Albrecht

Field Summary
private  ClassCollection classList
           
private static String FILE_INSPECTOR_PROPERTY_NAME
           
private  IFileInspector[] inspectors
           
 
Constructor Summary
FileIdentifiers(ClassCollection cc)
           
 
Method Summary
 void addInspector(IFileInspector insp)
           
 void addInspectors(IFileInspector[] insp)
           
 void addInspectors(Vector insp)
           
 void discoverFile(File f, ILocationSearcher ils, File baseFile)
          Attempts to discover the kind of file presented, and to add it to the class lists.
 void discoverURL(URL url, ILocationSearcher ils, URL baseUrl)
           
protected  void loadInspectors()
          Called only once, at construction time.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

FILE_INSPECTOR_PROPERTY_NAME

private static final String FILE_INSPECTOR_PROPERTY_NAME

inspectors

private IFileInspector[] inspectors

classList

private ClassCollection classList
Constructor Detail

FileIdentifiers

public FileIdentifiers(ClassCollection cc)
Method Detail

addInspector

public void addInspector(IFileInspector insp)

addInspectors

public void addInspectors(Vector insp)

addInspectors

public void addInspectors(IFileInspector[] insp)

discoverURL

public void discoverURL(URL url,
                        ILocationSearcher ils,
                        URL baseUrl)
                 throws IOException

discoverFile

public void discoverFile(File f,
                         ILocationSearcher ils,
                         File baseFile)
                  throws IOException
Attempts to discover the kind of file presented, and to add it to the class lists.

loadInspectors

protected void loadInspectors()
Called only once, at construction time.


Written under the LGPL