fi.hut.tml.xsmiles.content
Class UnknownContentHandler
java.lang.Object
fi.hut.tml.xsmiles.content.BaseContentHandler
fi.hut.tml.xsmiles.content.UnknownContentHandler
- All Implemented Interfaces:
- Media, ResourceReferencer, XSmilesContentHandler
- public class UnknownContentHandler
- extends BaseContentHandler
- implements XSmilesContentHandler
Handles application/xml
This class should be reusable for optimization purposes
- Author:
- Mikko Honkala
| Fields inherited from class fi.hut.tml.xsmiles.content.BaseContentHandler |
connection, fBrowser, fClosed, fContainer, fDoc, fInputStream, fLink, fMLFCListener, fPrefetched, fPrimary, fShowControls, fStopped, referencedResources |
|
Method Summary |
protected void |
fetch(java.io.InputStream stream,
XLink url)
fetches an resource |
java.lang.String |
getTitle()
get the possible title (can be null) |
void |
play()
Plays the media. |
static void |
saveContentFromURL(java.io.InputStream stream,
java.net.URL url,
ComponentFactory factory)
|
| Methods inherited from class fi.hut.tml.xsmiles.content.BaseContentHandler |
addMediaListener, addResource, close, closeConnection, get, getContainer, getContentStream, getOriginalDuration, getOriginalHeight, getOriginalWidth, getPrimary, getResourceCount, getResourceReferencer, getResources, getXMLDocument, isStatic, pause, prefetch, setBounds, setBrowserWindow, setConnection, setContainer, setInputStream, setMediaTime, setMLFCListener, setPrimary, setSoundVolume, setUrl, setURL, setZoom, showControls, stop |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface fi.hut.tml.xsmiles.content.XSmilesContentHandler |
addMediaListener, close, get, getContentStream, getOriginalDuration, getOriginalHeight, getOriginalWidth, getPrimary, getResourceReferencer, getXMLDocument, isStatic, pause, prefetch, setBounds, setBrowserWindow, setConnection, setContainer, setInputStream, setMediaTime, setMLFCListener, setPrimary, setSoundVolume, setUrl, setURL, setZoom, showControls, stop |
UnknownContentHandler
public UnknownContentHandler()
fetch
protected void fetch(java.io.InputStream stream,
XLink url)
- fetches an resource
- Parameters:
url - the documents url, used for relative referencesstream - the input stream of the content
saveContentFromURL
public static void saveContentFromURL(java.io.InputStream stream,
java.net.URL url,
ComponentFactory factory)
play
public void play()
throws java.lang.Exception
- Description copied from interface:
XSmilesContentHandler
- Plays the media. The media will be added to the container set using setContainer().
It will be visible. It will also play any animation it possibly has. Also,
audio media is started using this method.
If the media is not yet prefetched, it will first be prefetched.
- Specified by:
play in interface XSmilesContentHandler- Overrides:
play in class BaseContentHandler
- Throws:
java.lang.Exception
getTitle
public java.lang.String getTitle()
- Description copied from interface:
XSmilesContentHandler
- get the possible title (can be null)
- Specified by:
getTitle in interface XSmilesContentHandler
X-Smiles 1.2