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

Quick Search    Search Deep

org.esau.ptarmigan.impl.filter
Class M3UFilter  view M3UFilter download M3UFilter.java

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.esau.ptarmigan.impl.filter.BaseFilter
          extended byorg.esau.ptarmigan.impl.filter.PlaylistFilter
              extended byorg.esau.ptarmigan.impl.filter.SimplePlaylistFilter
                  extended byorg.esau.ptarmigan.impl.filter.M3UFilter
All Implemented Interfaces:
org.esau.ptarmigan.impl.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 $

Field Summary
(package private) static org.apache.commons.logging.Log log
          logging object
(package private) static java.lang.String M3U_MARKER
           
 
Fields inherited from class org.esau.ptarmigan.impl.filter.PlaylistFilter
NS_PREFIX, NS_URI, TAG_ENTRY, TAG_ENTRY_DURATION, TAG_ENTRY_TITLE, TAG_ENTRY_URL, TAG_PLAYLIST, TAG_PROPS, TAG_PROPS_AUTHOR, TAG_PROPS_COPYRIGHT, TAG_PROPS_DURATION_TOTAL, TAG_PROPS_ENTRY_COUNT, TAG_PROPS_SUMMARY, TAG_PROPS_TITLE
 
Fields inherited from class org.esau.ptarmigan.impl.filter.BaseFilter
EMPTY_ATTRS, m_media_properties
 
Fields inherited from class org.xml.sax.helpers.XMLFilterImpl
 
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
endPlaylist, getIncludeEntries, getInEntry, getIsPropsDone, getNamespacePrefix, getNamespaceURI, resetData, setAuthor, setBaseDir, setCopyright, setEntryCount, setEntryDuration, setEntryPath, setEntryPath, setEntryTitle, setIncludeEntries, setInEntry, setSummary, setTitle, startPlaylist, writeEntry, writeProperties
 
Methods inherited from class org.esau.ptarmigan.impl.filter.BaseFilter
characters, getByteStream, getChars, getMediaProperties, parse, setMediaProperties, sourceIsXML, write, write, write, write, write, write, write, write, write, write, write, writeDate, writeDate, writeDate, writeDate, writeInteger, writeInteger, writeInteger, writeInteger, writeInteger, writeString, writeString, writeString, writeString, writeString
 
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
 

Field Detail

M3U_MARKER

static final java.lang.String M3U_MARKER
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log
logging object

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?

Specified by:
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.

Specified by:
doParsePlaylist in class SimplePlaylistFilter