|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectfi.hut.tml.xsmiles.content.BaseContentHandler
fi.hut.tml.xsmiles.content.xml.XMLContentHandler
Handles application/xml
| Field Summary | |
protected XMLDocument |
doc
the XMLDocument of this contenthandler |
| Fields inherited from class fi.hut.tml.xsmiles.content.BaseContentHandler |
connection, fBrowser, fClosed, fContainer, fDoc, fInputStream, fLink, fMLFCListener, fPrefetched, fPrimary, fShowControls, fStopped, referencedResources |
| Constructor Summary | |
XMLContentHandler()
|
|
| Method Summary | |
protected void |
activateDocument()
|
void |
close()
This will freeze all memory and references to this media. |
protected XMLDocument |
createDocument(BrowserWindow b,
java.io.InputStream s,
XLink l)
|
protected void |
destroy()
|
protected void |
fetch(java.io.InputStream stream,
XLink url)
fetches an resource |
protected XMLDocument |
fetchParseAndTransformDocument(XLink link,
java.io.InputStream stream)
this protected method uses XMLDocument to read the stream and tries to catch all exeptions |
java.io.InputStream |
getContentStream()
get a stream to the content if possible This should read the contents from a cache if possible. |
java.lang.String |
getTitle()
get the possible title (can be null) |
protected void |
initDocument()
|
void |
pause()
Pauses the media. |
void |
play()
Plays the media. |
void |
prefetch()
Prefetches media. |
void |
setContainer(java.awt.Container cont)
Sets the container the media will be rendered in. |
void |
setZoom(double zoom)
notify that the zoom level has changed. |
void |
stop()
Stops the media. |
| Methods inherited from class fi.hut.tml.xsmiles.content.BaseContentHandler |
addMediaListener, addResource, closeConnection, get, getContainer, getOriginalDuration, getOriginalHeight, getOriginalWidth, getPrimary, getResourceCount, getResourceReferencer, getResources, getXMLDocument, isStatic, setBounds, setBrowserWindow, setConnection, setInputStream, setMediaTime, setMLFCListener, setPrimary, setSoundVolume, setUrl, setURL, showControls |
| 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, get, getOriginalDuration, getOriginalHeight, getOriginalWidth, getPrimary, getResourceReferencer, getXMLDocument, isStatic, setBounds, setBrowserWindow, setConnection, setInputStream, setMediaTime, setMLFCListener, setPrimary, setSoundVolume, setUrl, setURL, showControls |
| Field Detail |
protected XMLDocument doc
| Constructor Detail |
public XMLContentHandler()
| Method Detail |
public void prefetch()
throws java.lang.Exception
prefetch in interface XSmilesContentHandlerprefetch in class BaseContentHandlerjava.lang.Exception
public void play()
throws java.lang.Exception
If the media is not yet prefetched, it will first be prefetched.
play in interface XSmilesContentHandlerplay in class BaseContentHandlerjava.lang.Exceptionpublic void pause()
XSmilesContentHandler
pause in interface XSmilesContentHandlerpause in class BaseContentHandlerpublic void stop()
stop in interface XSmilesContentHandlerstop in class BaseContentHandlerpublic void close()
close in interface XSmilesContentHandlerclose in class BaseContentHandler
protected void fetch(java.io.InputStream stream,
XLink url)
url - the documents url, used for relative referencesstream - the input stream of the content
protected void initDocument()
throws java.lang.Exception
java.lang.Exception
protected void activateDocument()
throws java.lang.Exception
java.lang.Exception
protected XMLDocument createDocument(BrowserWindow b,
java.io.InputStream s,
XLink l)
public void setContainer(java.awt.Container cont)
XSmilesContentHandler
setContainer in interface XSmilesContentHandlersetContainer in class BaseContentHandler
protected XMLDocument fetchParseAndTransformDocument(XLink link,
java.io.InputStream stream)
protected void destroy()
public void setZoom(double zoom)
setZoom in interface XSmilesContentHandlersetZoom in class BaseContentHandlerpublic java.lang.String getTitle()
XSmilesContentHandler
getTitle in interface XSmilesContentHandlerpublic java.io.InputStream getContentStream()
XSmilesContentHandler
getContentStream in interface XSmilesContentHandlergetContentStream in class BaseContentHandler
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||