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.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.
- Version:
- $Revision: 1.2 $ $Date: 2002/09/19 03:50:48 $
| 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 |
NS_URI
static final java.lang.String NS_URI
- See Also:
- Constant Field Values
NS_PREFIX
static final java.lang.String NS_PREFIX
- See Also:
- Constant Field Values
MAX_COMMENT_SIZE
static final int MAX_COMMENT_SIZE
- See Also:
- Constant Field Values
ENCODING
static final java.lang.String ENCODING
- See Also:
- Constant Field Values
log
static org.apache.commons.logging.Log log
- logging object
VorbisCommentFilter
public VorbisCommentFilter()
throws org.xml.sax.SAXException
readCommentSubPacket
int readCommentSubPacket()
throws java.io.IOException,
org.xml.sax.SAXException,
java.text.ParseException
- shared with FLAC to read comment packet
readComment
private int readComment(byte[] buf)
throws java.io.IOException,
java.text.ParseException
- consume a comment string prefixed by an UNSIGNED length integer (4-bytes)
writeContentMap
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