org.esau.ptarmigan.impl.filter
Class BinaryFilter

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

BinaryFilter -- abstract filter for Binary sources

Version:
$Revision: 1.1 $ $Date: 2002/09/19 03:39:33 $
Author:
Reed Esau

Constructor Summary
BinaryFilter()
           
 
Method Summary
 int counter()
           
 int fastForward(int n)
           
 int read()
           
 int read(byte[] b)
           
 int read(byte[] b, int off, int len)
           
 char readCharBE()
           
 char readCharLE()
           
 int readInt16BE()
           
 int readInt16LE()
           
 int readInt24BE()
           
 int readInt24LE()
           
 int readInt32BE()
           
 int readInt32LE()
           
 int remaining()
           
 boolean rewind(int n)
           
 void setCounterLimit(int limit)
           
 long skip(long n)
           
 
Methods inherited from class org.esau.ptarmigan.impl.filter.BaseFilter
characters, getMediaProperties, parse, setMediaProperties
 
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
 

Constructor Detail

BinaryFilter

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

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


Copyright © 2002 Reed Esau, All Rights Reserved.