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

Quick Search    Search Deep

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

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

Extract metadata from a Resource Interchange File Format (RIFF) native tag format.

This doesn't produce any SAX events at present and merely jumps over RIFF to get to other data. However, it could be extended to produce SAX events describing the RIFF content. References http://ccrma-www.stanford.edu/CCRMA/Courses/422/projects/WaveFormat/ http://www.midi.org/about-midi/rp29spec(rmid).pdf


Field Summary
(package private) static org.apache.commons.logging.Log log
          logging object
 
Fields inherited from class org.esau.ptarmigan.impl.filter.BinaryFilter
ERROR_MSG, m_cis, m_limit_to_impose
 
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
RIFFFilter()
           
 
Method Summary
 void doParse()
          SAX-Invoked parse of a 'document' from an input stream.
(package private)  java.lang.String getNamespacePrefix()
           
(package private)  java.lang.String getNamespaceURI()
           
(package private)  boolean readMarker()
           
 
Methods inherited from class org.esau.ptarmigan.impl.filter.BinaryFilter
counter, doParse, 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, 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

log

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

Constructor Detail

RIFFFilter

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

getNamespaceURI

java.lang.String getNamespaceURI()
Specified by:
getNamespaceURI in class BaseFilter

getNamespacePrefix

java.lang.String getNamespacePrefix()
Specified by:
getNamespacePrefix in class BaseFilter

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. Skips over the 12-byte RIFF header

Specified by:
doParse in class BinaryFilter

readMarker

boolean readMarker()
             throws java.io.IOException