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

Quick Search    Search Deep

org.esau.ptarmigan.impl.filter
Class BinaryFilter  view BinaryFilter download BinaryFilter.java

java.lang.Object
  extended byorg.xml.sax.helpers.XMLFilterImpl
      extended byorg.esau.ptarmigan.impl.filter.BaseFilter
          extended byorg.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 $

Field Summary
(package private) static java.lang.String ERROR_MSG
           
(package private) static org.apache.commons.logging.Log log
          logging object
(package private)  org.esau.ptarmigan.util.CountingInputStream m_cis
           
(package private)  int 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
BinaryFilter()
           
 
Method Summary
 int counter()
           
(package private) abstract  void doParse()
          subclasses use argument-less parser invocation
(package private)  void doParse(java.io.InputStream is)
           
 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, 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

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

Constructor Detail

BinaryFilter

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

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