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
org.esau.ptarmigan.impl.filter.FLACFilter
- 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 FLACFilter
- extends VorbisCommentFilter
Extract metadata from FLAC native tag format
| 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 |
METADATA_BLOCK_TYPE_STREAMINFO
static final int METADATA_BLOCK_TYPE_STREAMINFO
- See Also:
- Constant Field Values
METADATA_BLOCK_TYPE_PADDING
static final int METADATA_BLOCK_TYPE_PADDING
- See Also:
- Constant Field Values
METADATA_BLOCK_TYPE_APPLICATION
static final int METADATA_BLOCK_TYPE_APPLICATION
- See Also:
- Constant Field Values
METADATA_BLOCK_TYPE_SEEKTABLE
static final int METADATA_BLOCK_TYPE_SEEKTABLE
- See Also:
- Constant Field Values
METADATA_BLOCK_TYPE_VORBIS_COMMENT
static final int METADATA_BLOCK_TYPE_VORBIS_COMMENT
- See Also:
- Constant Field Values
METADATA_BLOCK_LENGTH_STREAMINFO
static final int METADATA_BLOCK_LENGTH_STREAMINFO
- See Also:
- Constant Field Values
MAX_BLOCK_LENGTH
static final int MAX_BLOCK_LENGTH
- See Also:
- Constant Field Values
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
log
static org.apache.commons.logging.Log log
- logging object
FLACFilter
public FLACFilter()
throws org.xml.sax.SAXException
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.
This module creates the document from the parsed FLAC metadata.
- Specified by:
doParse in class BinaryFilter
readMarker
boolean readMarker()
throws java.io.IOException
readBlock
boolean readBlock()
throws java.io.IOException,
org.xml.sax.SAXException,
java.text.ParseException
parseStreamInfo
void parseStreamInfo(int length)
throws java.io.IOException,
org.xml.sax.SAXException,
java.text.ParseException
- extract data from a STREAMINFO block
parseVorbisComment
void parseVorbisComment(int length)
throws java.io.IOException,
org.xml.sax.SAXException,
java.text.ParseException
- extract data from a STREAMINFO block
parseSeekTable
void parseSeekTable(int length)
throws java.io.IOException,
java.text.ParseException
- extract data from a SEEKTABLE block