org.semanticdesktop.aperture.crawler.ical
Class IcalCrawlerFactory

java.lang.Object
  extended by org.semanticdesktop.aperture.crawler.ical.IcalCrawlerFactory
All Implemented Interfaces:
CrawlerFactory, SubCrawlerFactory

public class IcalCrawlerFactory
extends Object
implements CrawlerFactory, SubCrawlerFactory

Provides instances of IcalCrawler.


Field Summary
static String ZIP_URI_PREFIX
          Prefix used for uris of entries inside zip archives
 
Constructor Summary
IcalCrawlerFactory()
           
IcalCrawlerFactory(boolean attachmentOnlyMode)
           
 
Method Summary
 SubCrawler get()
          Return a SubCrawler instance.
 Crawler getCrawler(DataSource dataSource)
          Return a Crawler that can crawl the specified DataSource.
 Set getSupportedMimeTypes()
          Returns a set of Strings indicating the MIME types that are supported by the SubCrawler implementation provided by this SubCrawlerFactory.
 Set getSupportedTypes()
          Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.
 String getUriPrefix()
          Returns the prefix used to construct uris.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZIP_URI_PREFIX

public static final String ZIP_URI_PREFIX
Prefix used for uris of entries inside zip archives

See Also:
Constant Field Values
Constructor Detail

IcalCrawlerFactory

public IcalCrawlerFactory()

IcalCrawlerFactory

public IcalCrawlerFactory(boolean attachmentOnlyMode)
Method Detail

getSupportedTypes

public Set getSupportedTypes()
Description copied from interface: CrawlerFactory
Returns a set of URIs indicating the DataSource types that are supported by the Crawler implementation provided by this CrawlerFactory.

Specified by:
getSupportedTypes in interface CrawlerFactory
Returns:
A Set of DataSource type URIs.
See Also:
CrawlerFactory.getSupportedTypes()

getCrawler

public Crawler getCrawler(DataSource dataSource)
Description copied from interface: CrawlerFactory
Return a Crawler that can crawl the specified DataSource. The getType method of this DataSource should return a URI that is contained in the supported types set of this CrawlerFactory.

Specified by:
getCrawler in interface CrawlerFactory
Parameters:
dataSource - The DataSource for which a Crawler needs to be generated.
Returns:
A Crawler whose getDataSource method returns the specified DataSource.
See Also:
CrawlerFactory.getCrawler(DataSource)

get

public SubCrawler get()
Description copied from interface: SubCrawlerFactory
Return a SubCrawler instance.

Specified by:
get in interface SubCrawlerFactory
Returns:
A SubCrawler instance.

getSupportedMimeTypes

public Set getSupportedMimeTypes()
Description copied from interface: SubCrawlerFactory
Returns a set of Strings indicating the MIME types that are supported by the SubCrawler implementation provided by this SubCrawlerFactory.

Specified by:
getSupportedMimeTypes in interface SubCrawlerFactory
Returns:
A Set of mime type strings

getUriPrefix

public String getUriPrefix()
Description copied from interface: SubCrawlerFactory
Returns the prefix used to construct uris. See the documentation of the SubCrawler class for more details.

Specified by:
getUriPrefix in interface SubCrawlerFactory
Returns:
the prefix used to construct uris


Copyright © 2010 Aperture Development Team. All Rights Reserved.