    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

##

contentTypes

##

ContentTypeIndexer()

##

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

##

contentTypes

     protected ResourceReference contentTypes

##

ContentTypeIndexer

     public ContentTypeIndexer()

##

enumerateResourceIdentifiers

     public Enumeration enumerateResourceIdentifiers(boolean all)

  Overrides:
    enumerateResourceIdentifiers in class SampleResourceIndexer

getContentTypes

     protected synchronized ResourceReference getContentTypes()

lookup

     public ResourceReference lookup(String name)

  Overrides:
    lookup in class SampleResourceIndexer

delete

     public synchronized void delete() throws MultipleLockException

  Delete this indexer.

  Throws: MultipleLockException
    if someone else has locked the resource
  Overrides:
    delete in class SampleResourceIndexer

loadContentType

     public synchronized ResourceReference loadContentType(String type)

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