com.sun.jersey.core.spi.scanning.uri
Class FileSchemeScanner

java.lang.Object
  extended by com.sun.jersey.core.spi.scanning.uri.FileSchemeScanner
All Implemented Interfaces:
UriSchemeScanner

public class FileSchemeScanner
extends java.lang.Object
implements UriSchemeScanner

A "file" scheme URI scanner that recursively scans directories. Files are reported to a ScannerListener.

Author:
[email protected]

Constructor Summary
FileSchemeScanner()
           
 
Method Summary
 java.util.Set<java.lang.String> getSchemes()
          Get the set of supported URI schemes.
 void scan(java.net.URI u, ScannerListener cfl)
          Perform a scan and report resources to a scanning listener.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileSchemeScanner

public FileSchemeScanner()
Method Detail

getSchemes

public java.util.Set<java.lang.String> getSchemes()
Description copied from interface: UriSchemeScanner
Get the set of supported URI schemes.

Specified by:
getSchemes in interface UriSchemeScanner
Returns:
the supported URI schemes.

scan

public void scan(java.net.URI u,
                 ScannerListener cfl)
Description copied from interface: UriSchemeScanner
Perform a scan and report resources to a scanning listener.

Specified by:
scan in interface UriSchemeScanner
Parameters:
u - the URI to scan for resources.
cfl - the scanning listener to report entries.


Copyright © 2010 Oracle Corporation. All Rights Reserved.