Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.filesystems 6.4.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.openide.filesystems
Class MIMEResolver

    java.lang.Object
      org.openide.filesystems.MIMEResolver

    public abstract class MIMEResolver

extends Object

This class is intended as superclass for individual resolvers. All registered subclasses of MIMEResolver are looked up and asked one by one to resolve MIME type of passed FileObject. Resolving is finished right after a resolver is able to resolve the FileObject or if all registered resolvers returned null (not recognized).

Resolvers are registered if they have their record in the Lookup area. E.g. in form : org-some-package-JavaResolver.instance file.

Constructor Summary
`MIMEResolver()`

Method Summary
`abstract String` | `findMIMEType(FileObject fo)` Resolves FileObject and returns recognized MIME type

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MIMEResolver

    public MIMEResolver()

Method Detail

### findMIMEType

    public abstract String findMIMEType(FileObject fo)

  Resolves FileObject and returns recognized MIME type

  Parameters:
    `fo` - is FileObject which should be resolved (This FileObject is not thread safe. Also this FileObject should not be cached for later use)
  Returns:
    recognized MIME type or null if not recognized

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
| org.openide.filesystems 6.4.22
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Built on December 7 2006. | Portions Copyright 1997-2005 Sun Microsystems, Inc. All rights reserved.