java.lang.Object
org.xml.sax.helpers.XMLFilterImpl
org.esau.ptarmigan.impl.filter.BaseFilter
org.esau.ptarmigan.impl.filter.BinaryFilter
- 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:
- ID3v1Filter, ID3v2Filter, MIDIFilter, MPEGFilter, RIFFFilter, VorbisCommentFilter, WMAFilter
- public abstract class BinaryFilter
- extends BaseFilter
- implements org.esau.ptarmigan.impl.ByteStreamSource
BinaryFilter -- abstract filter for Binary sources
- Version:
- $Revision: 1.1 $ $Date: 2002/09/19 03:39:33 $
| 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 |
ERROR_MSG
static final java.lang.String ERROR_MSG
- See Also:
- Constant Field Values
m_limit_to_impose
int m_limit_to_impose
m_cis
org.esau.ptarmigan.util.CountingInputStream m_cis
log
static org.apache.commons.logging.Log log
- logging object
BinaryFilter
public BinaryFilter()
throws org.xml.sax.SAXException
doParse
abstract void doParse()
throws org.xml.sax.SAXException,
java.io.IOException,
java.text.ParseException
- subclasses use argument-less parser invocation
doParse
final void doParse(java.io.InputStream is)
throws org.xml.sax.SAXException,
java.io.IOException,
java.text.ParseException
- Specified by:
doParse in class BaseFilter
counter
public int counter()
setCounterLimit
public void setCounterLimit(int limit)
remaining
public int remaining()
rewind
public boolean rewind(int n)
throws java.io.IOException
fastForward
public int fastForward(int n)
throws java.io.IOException
read
public int read()
throws java.io.IOException
read
public int read(byte[] b)
throws java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
skip
public long skip(long n)
throws java.io.IOException
readInt32LE
public int readInt32LE()
throws java.io.IOException
readInt32BE
public int readInt32BE()
throws java.io.IOException
readInt24LE
public int readInt24LE()
throws java.io.IOException
readInt24BE
public int readInt24BE()
throws java.io.IOException
readInt16LE
public int readInt16LE()
throws java.io.IOException
readInt16BE
public int readInt16BE()
throws java.io.IOException
readCharLE
public char readCharLE()
throws java.io.IOException
readCharBE
public char readCharBE()
throws java.io.IOException