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

Quick Search    Search Deep

Class VorbisCommentFilter  view VorbisCommentFilter download

  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.VorbisCommentFilter
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
Direct Known Subclasses:
FLACFilter, VorbisFilter

public abstract class VorbisCommentFilter
extends BinaryFilter

Extract metadata from an OGG Vorbis native tag format Following the three header packets, all packets in a Vorbis I stream are audio.

$Revision: 1.2 $ $Date: 2002/09/19 03:50:48 $

Field Summary
(package private) static java.lang.String ENCODING
(package private) static org.apache.commons.logging.Log log
          logging object
(package private) static int MAX_COMMENT_SIZE
(package private) static java.lang.String NS_PREFIX
(package private) static java.lang.String NS_URI
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
Method Summary
private  int readComment(byte[] buf)
          consume a comment string prefixed by an UNSIGNED length integer (4-bytes)
(package private)  int readCommentSubPacket()
          shared with FLAC to read comment packet
private  void writeContentMap(org.esau.ptarmigan.util.MultiMap content_map)
          write those items available in content_map as elements in the order prescribed by the schema
Methods inherited from class org.esau.ptarmigan.impl.filter.BinaryFilter
counter, doParse, 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, getNamespacePrefix, getNamespaceURI, 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


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


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


static final int MAX_COMMENT_SIZE
See Also:
Constant Field Values


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


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

Constructor Detail


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


int readCommentSubPacket()
shared with FLAC to read comment packet


private int readComment(byte[] buf)
consume a comment string prefixed by an UNSIGNED length integer (4-bytes)


private void writeContentMap(org.esau.ptarmigan.util.MultiMap content_map)
                      throws org.xml.sax.SAXException
write those items available in content_map as elements in the order prescribed by the schema