org.esau.ptarmigan.impl.filter
Class ID3v2Filter

java.lang.Object
  |
  +--org.xml.sax.helpers.XMLFilterImpl
        |
        +--org.esau.ptarmigan.impl.filter.BaseFilter
              |
              +--org.esau.ptarmigan.impl.filter.BinaryFilter
                    |
                    +--org.esau.ptarmigan.impl.filter.ID3v2Filter
All Implemented Interfaces:
ByteStreamSource, 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 ID3v2Filter
extends BinaryFilter

Extract metadata from ID3v2 native tag format

Version:
$Revision: 1.4 $ $Date: 2002/09/19 03:43:42 $
Author:
Reed Esau

Constructor Summary
ID3v2Filter()
           
 
Method Summary
 void doParse()
          SAX-Invoked parse of a 'document' from an input stream.
 void extractFrame(boolean is_new, java.lang.String frame_id, byte[] frame_buf)
          support for readFrames
 
Methods inherited from class org.esau.ptarmigan.impl.filter.BinaryFilter
counter, fastForward, read, read, read, readCharBE, readCharLE, readInt16BE, readInt16LE, readInt24BE, readInt24LE, readInt32BE, readInt32LE, remaining, rewind, setCounterLimit, skip
 
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

ID3v2Filter

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

doParse

public void doParse()
             throws org.xml.sax.SAXException,
                    java.io.IOException,
                    java.text.ParseException
SAX-Invoked parse of a 'document' from an input stream.

Attempt to detect an ID3v2 frame near the start of the InputStream and if found produce XML content from it in the form of SAX events.


extractFrame

public void extractFrame(boolean is_new,
                         java.lang.String frame_id,
                         byte[] frame_buf)
                  throws java.io.IOException,
                         java.text.ParseException
support for readFrames


Copyright © 2002 Reed Esau, All Rights Reserved.