net.groboclown.util.jplugin.v2
Class NetSearcher

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

public class NetSearcher
extends Object
implements ILocationSearcher

Examines a given URL, and gives it directly to the File Inspectors. It does not search directories. This is for network protocols which do not allow for directory searching.

Right now, this includes FTP, since Java, by default, doesn't allow for FTP searching. There are FTP packages which do allow for this, though, and they may be used in the future.

Version:
0.9.0 Alpha
Author:
Matt Albrecht

Field Summary
private static String[] SUPPORTED_PROTOCOLS
           
 
Constructor Summary
NetSearcher()
          Default Constructor
 
Method Summary
 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

SUPPORTED_PROTOCOLS

private static final String[] SUPPORTED_PROTOCOLS
Constructor Detail

NetSearcher

public NetSearcher()
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


Written under the LGPL