All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class org.w3c.jigsaw.indexer.ContentTypeIndexer

java.lang.Object
   |
   +----org.w3c.tools.resources.AttributeHolder
           |
           +----org.w3c.tools.resources.Resource
                   |
                   +----org.w3c.tools.resources.indexer.SampleResourceIndexer
                           |
                           +----org.w3c.jigsaw.indexer.ContentTypeIndexer

public class ContentTypeIndexer
extends SampleResourceIndexer

Variable Index

 o contentTypes

Constructor Index

 o ContentTypeIndexer()

Method Index

 o createFileResource(File, RequestInterface, String, Hashtable)
Create a default file resource for this file (that exists).
 o delete()
Delete this indexer.
 o enumerateResourceIdentifiers(boolean)
 o getContentTypes()
 o loadContentType(String)
 o lookup(String)

Variables

 o contentTypes
 protected ResourceReference contentTypes

Constructors

 o ContentTypeIndexer
 public ContentTypeIndexer()

Methods

 o enumerateResourceIdentifiers
 public Enumeration enumerateResourceIdentifiers(boolean all)
Overrides:
enumerateResourceIdentifiers in class SampleResourceIndexer
 o getContentTypes
 protected synchronized ResourceReference getContentTypes()
 o lookup
 public ResourceReference lookup(String name)
Overrides:
lookup in class SampleResourceIndexer
 o delete
 public synchronized void delete() throws MultipleLockException
Delete this indexer.

Throws: MultipleLockException
if someone else has locked the resource
Overrides:
delete in class SampleResourceIndexer
 o loadContentType
 public synchronized ResourceReference loadContentType(String type)
 o createFileResource
 protected Resource createFileResource(File directory,
                                       RequestInterface req,
                                       String name,
                                       Hashtable defs)
Create a default file resource for this file (that exists).

Parameters:
directory - The directory of the file.
name - The name of the file.
defs - A set of default attribute values.
Returns:
An instance of Resource, or null if we were unable to create it.
Overrides:
createFileResource in class SampleResourceIndexer

All Packages  Class Hierarchy  This Package  Previous  Next  Index