fi.hut.tml.xsmiles.gui.media.swing
Class SwingContentHandlerFactory

java.lang.Object
  extended byfi.hut.tml.xsmiles.content.ContentHandlerFactory
      extended byfi.hut.tml.xsmiles.gui.media.general.JMFContentHandlerFactory
          extended byfi.hut.tml.xsmiles.gui.media.swing.SwingContentHandlerFactory

public class SwingContentHandlerFactory
extends JMFContentHandlerFactory

ContentHandlerFactory creates content handlers based on the content-type and possibly the URI This class adds swing dependand media handlers

Version:
$Revision: 5891 $, $Date: 2005-01-26 14:28:55 +0200 (Wed, 26 Jan 2005) $
Author:
Mikko Honkala

Field Summary
static java.lang.String AUDIOMEDIA
           
static java.lang.String IMAGEMEDIA
           
static java.lang.String JMFMEDIA
           
static java.lang.String NATIVEMEDIA
           
static java.lang.String TEXTMEDIA
           
 
Fields inherited from class fi.hut.tml.xsmiles.gui.media.general.JMFContentHandlerFactory
AWTTEXTMEDIA, JMF_BASIC_MEDIA, JMF_XINE_MEDIA
 
Fields inherited from class fi.hut.tml.xsmiles.content.ContentHandlerFactory
browserWindow, endingHandlers, HTMLHANDLER, typeHandlers, XMLHANDLER
 
Constructor Summary
SwingContentHandlerFactory(BrowserWindow bw)
           
 
Method Summary
protected  XSmilesContentHandler createContentHandler(java.lang.Class cl, java.lang.String contentType, XLink url)
          copied from SwingContentHandlerFactory
protected  void createMappings()
           
protected  XSmilesContentHandler createMediaContentHandler(Media instance)
           
protected  void createTextMappings()
           
protected  java.lang.String getBareContentType(java.lang.String contentType)
          This returns just the bare content type.
 
Methods inherited from class fi.hut.tml.xsmiles.content.ContentHandlerFactory
createContentHandler, createContentHandler, createEndingMapping, createMIMEMapping, getSuffix, getWildBareContentType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TEXTMEDIA

public static final java.lang.String TEXTMEDIA
See Also:
Constant Field Values

IMAGEMEDIA

public static final java.lang.String IMAGEMEDIA
See Also:
Constant Field Values

JMFMEDIA

public static final java.lang.String JMFMEDIA
See Also:
Constant Field Values

NATIVEMEDIA

public static final java.lang.String NATIVEMEDIA
See Also:
Constant Field Values

AUDIOMEDIA

public static final java.lang.String AUDIOMEDIA
See Also:
Constant Field Values
Constructor Detail

SwingContentHandlerFactory

public SwingContentHandlerFactory(BrowserWindow bw)
Method Detail

createMappings

protected void createMappings()
Overrides:
createMappings in class JMFContentHandlerFactory

createTextMappings

protected void createTextMappings()
Overrides:
createTextMappings in class JMFContentHandlerFactory

getBareContentType

protected java.lang.String getBareContentType(java.lang.String contentType)
This returns just the bare content type. e.g. for "text/html; charset = xxx", it would return "text/html"

Overrides:
getBareContentType in class ContentHandlerFactory

createContentHandler

protected XSmilesContentHandler createContentHandler(java.lang.Class cl,
                                                     java.lang.String contentType,
                                                     XLink url)
                                              throws java.lang.InstantiationException,
                                                     java.lang.IllegalAccessException
Description copied from class: JMFContentHandlerFactory
copied from SwingContentHandlerFactory

Overrides:
createContentHandler in class JMFContentHandlerFactory
Throws:
java.lang.InstantiationException
java.lang.IllegalAccessException

createMediaContentHandler

protected XSmilesContentHandler createMediaContentHandler(Media instance)
Overrides:
createMediaContentHandler in class JMFContentHandlerFactory


X-Smiles 1.2