org.esau.ptarmigan.impl.filter
Class M3UFilter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--org.esau.ptarmigan.impl.filter.BaseFilter
              |
              +--org.esau.ptarmigan.impl.filter.PlaylistFilter
                    |
                    +--org.esau.ptarmigan.impl.filter.SimplePlaylistFilter
                          |
                          +--org.esau.ptarmigan.impl.filter.M3UFilter
All Implemented Interfaces:
CharacterStreamSource, org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler, org.xml.sax.XMLFilter, org.xml.sax.XMLReader

public final class M3UFilter
extends SimplePlaylistFilter

M3UFilter -- transforms M3U playlist to ptarmigan playlist

TODO: recursively scan all playlists found.

Version:
$Revision: 1.4 $ $Date: 2002/10/04 11:49:06 $
Author:
Reed Esau

Constructor Summary
M3UFilter()
           
 
Method Summary
 void doParsePlaylist(java.io.BufferedReader reader)
          Parse a document from a buffered source.
 boolean isMatch(java.lang.String str)
          does the specified stream contain a marker for the tag?
 
Methods inherited from class org.esau.ptarmigan.impl.filter.SimplePlaylistFilter
doParse
 
Methods inherited from class org.esau.ptarmigan.impl.filter.PlaylistFilter
getIncludeEntries, resetData, setBaseDir, setIncludeEntries
 
Methods inherited from class org.esau.ptarmigan.impl.filter.BaseFilter
characters, getMediaProperties, parse, setMediaProperties
 
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl
endDocument, endElement, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

M3UFilter

public M3UFilter()
          throws org.xml.sax.SAXException
Method Detail

isMatch

public boolean isMatch(java.lang.String str)
                throws java.io.IOException
does the specified stream contain a marker for the tag?
Overrides:
isMatch in class PlaylistFilter

doParsePlaylist

public void doParsePlaylist(java.io.BufferedReader reader)
                     throws org.xml.sax.SAXException,
                            java.io.IOException,
                            java.text.ParseException
Parse a document from a buffered source.
Overrides:
doParsePlaylist in class SimplePlaylistFilter


Copyright © 2002 Reed Esau, All Rights Reserved.