Lizzy v1.1.1

christophedelory.playlist.wpl
Class Smil

java.lang.Object
  extended by christophedelory.playlist.wpl.Smil
All Implemented Interfaces:
SpecificPlaylist

public class Smil
extends Object
implements SpecificPlaylist

The smil element is always the top-level element in a Windows Media Playlist (WPL) file. It specifies that the file uses SMIL (Synchronized Multimedia Integration Language) syntax and grammar. Every Windows Media Playlist must have the smil element at its root.
Windows Media Player 9 Series or later.

Version:
$Revision: 92 $
Author:
Christophe Delory

Constructor Summary
Smil()
           
 
Method Summary
 Body getBody()
          Returns the body of this SMIL presentation, if any.
 Head getHeader()
          Returns the header of this SMIL presentation, if any.
 SpecificPlaylistProvider getProvider()
          Returns the provider of this specific playlist.
 void setBody(Body body)
          Initializes the body of this SMIL presentation.
 void setHeader(Head header)
          Initializes the header of this SMIL presentation.
 void setProvider(SpecificPlaylistProvider provider)
          Initializes the provider of this specific playlist.
 Playlist toPlaylist()
          Builds a generic representation from this specific playlist.
 void writeTo(OutputStream out, String encoding)
          Writes this specific playlist to the specified output stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Smil

public Smil()
Method Detail

setProvider

public void setProvider(SpecificPlaylistProvider provider)
Description copied from interface: SpecificPlaylist
Initializes the provider of this specific playlist.

Specified by:
setProvider in interface SpecificPlaylist
Parameters:
provider - the provider of this playlist. Shall not be null.
See Also:
SpecificPlaylist.getProvider()

getProvider

public SpecificPlaylistProvider getProvider()
Description copied from interface: SpecificPlaylist
Returns the provider of this specific playlist.

Specified by:
getProvider in interface SpecificPlaylist
Returns:
the provider of this playlist. May be null.
See Also:
SpecificPlaylist.setProvider(christophedelory.playlist.SpecificPlaylistProvider)

writeTo

public void writeTo(OutputStream out,
                    String encoding)
             throws Exception
Description copied from interface: SpecificPlaylist
Writes this specific playlist to the specified output stream. When done, the stream may be flushed, but not closed.

Specified by:
writeTo in interface SpecificPlaylist
Parameters:
out - an output stream. Shall not be null.
encoding - the content encoding of the output resource, or null if not known.
Throws:
NullPointerException - if out is null.
Exception - if any error occurs during the marshalling process.
See Also:
SpecificPlaylistFactory.readFrom(java.net.URL), SpecificPlaylistProvider.readFrom(java.io.InputStream, java.lang.String, org.apache.commons.logging.Log)

toPlaylist

public Playlist toPlaylist()
Description copied from interface: SpecificPlaylist
Builds a generic representation from this specific playlist.

Specified by:
toPlaylist in interface SpecificPlaylist
Returns:
a generic playlist. Shall not be null.
See Also:
SpecificPlaylistProvider.toSpecificPlaylist(christophedelory.playlist.Playlist)

getHeader

public Head getHeader()
Returns the header of this SMIL presentation, if any.

Returns:
an header element. May be null.
See Also:
setHeader(christophedelory.playlist.wpl.Head)

setHeader

public void setHeader(Head header)
Initializes the header of this SMIL presentation.

Parameters:
header - an header element. May be null.
See Also:
getHeader()

getBody

public Body getBody()
Returns the body of this SMIL presentation, if any.

Returns:
the body element. May be null.
See Also:
setBody(christophedelory.playlist.wpl.Body)

setBody

public void setBody(Body body)
Initializes the body of this SMIL presentation.

Parameters:
body - a body element. May be null.
See Also:
getBody()

© 2008-2009 Christophe Delory

Copyright © 2008-2009 Christophe Delory. All Rights Reserved.