Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

jreceiver.server.util.playlist
Class PlaylistWriterASX  view PlaylistWriterASX download PlaylistWriterASX.java

java.lang.Object
  extended byjava.io.Writer
      extended byjava.io.BufferedWriter
          extended byjreceiver.server.util.playlist.PlaylistWriter
              extended byjreceiver.server.util.playlist.PlaylistWriterASX

public class PlaylistWriterASX
extends PlaylistWriter

Write a ASX playlist

<ASX version="3.0"> <ABSTRACT>This is a sample asx file used as playlist</ABSTRACT> <TITLE>Windows Media Playlist Demo</TITLE> <AUTHOR>Reed Esau</AUTHOR> <COPYRIGHT>2002 Reed Esau</COPYRIGHT> <ENTRY> <REF href="File1.asf" /> <ABSTRACT>Link to a local file on the same folder</ABSTRACT> </ENTRY> <ENTRY> <REF href="mms://media.phm.lu/File2.asf" /> <ABSTRACT>a file streamed from a media server on the network</ABSTRACT> </ENTRY> <ENTRY> <REF href="File3.mp3" /> <ABSTRACT>ASX can support any file type supported by WMP</ABSTRACT> </ENTRY> <ENTRY> <REF href="File4.avi" /> <ABSTRACT>you can even mix audio files and video files in the same ASX</ABSTRACT> </ENTRY> </ASX>

Version:
$Revision: 1.6 $ $Date: 2003/05/04 19:47:22 $

Field Summary
 
Fields inherited from class jreceiver.server.util.playlist.PlaylistWriter
log
 
Fields inherited from class java.io.BufferedWriter
 
Fields inherited from class java.io.Writer
lock
 
Constructor Summary
protected PlaylistWriterASX(java.io.Writer in)
          ctor
 
Method Summary
protected  void writeEntry(int entry_no, jreceiver.common.rec.source.Source source)
           
protected  void writeFooter(int entry_count)
           
protected  void writeHeader()
           
 
Methods inherited from class jreceiver.server.util.playlist.PlaylistWriter
close, newInstance, write
 
Methods inherited from class java.io.BufferedWriter
flush, newLine, write, write, write
 
Methods inherited from class java.io.Writer
write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlaylistWriterASX

protected PlaylistWriterASX(java.io.Writer in)
ctor

Method Detail

writeHeader

protected void writeHeader()
                    throws java.io.IOException
Specified by:
writeHeader in class PlaylistWriter

writeEntry

protected void writeEntry(int entry_no,
                          jreceiver.common.rec.source.Source source)
                   throws java.io.IOException
Specified by:
writeEntry in class PlaylistWriter

writeFooter

protected void writeFooter(int entry_count)
                    throws java.io.IOException
Specified by:
writeFooter in class PlaylistWriter