net.groboclown.util.jplugin.v2
Class FileSearcher

java.lang.Object
  |
  +--net.groboclown.util.jplugin.v2.FileSearcher
All Implemented Interfaces:
ILocationSearcher

public class FileSearcher
extends Object
implements ILocationSearcher

Examines a given file or URL, and adds it to the correct list based on its attributes.

Version:
0.9.0 Alpha
Author:
Matt Albrecht

Field Summary
private static String FILE_PROTOCOL
           
 
Constructor Summary
FileSearcher()
          Default Constructor
 
Method Summary
 void search(File f, FileIdentifiers fi, File baseFile)
           
 void search(URL baseUrl, FileIdentifiers fi)
          Search the given URL for files.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

FILE_PROTOCOL

private static final String FILE_PROTOCOL
Constructor Detail

FileSearcher

public FileSearcher()
Default Constructor
Method Detail

search

public void search(URL baseUrl,
                   FileIdentifiers fi)
            throws IOException
Search the given URL for files. Each discovered file should be given to the FileIdentifiers instance. If the given URL type is not supported by the instance, then the instance should quit the method quietly, without an error.
Specified by:
search in interface ILocationSearcher

search

public void search(File f,
                   FileIdentifiers fi,
                   File baseFile)
            throws IOException


Written under the LGPL