org.apache.cocoon.components.sax
Class XMLInputStreamInterpreter

java.lang.Object
  extended byorg.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter
      extended byorg.apache.cocoon.components.sax.XMLInputStreamInterpreter
All Implemented Interfaces:
XMLByteStreamConstants, org.apache.cocoon.xml.XMLProducer

public final class XMLInputStreamInterpreter
extends AbstractXMLByteStreamInterpreter

This class interpreter compiled SAX event from an InputStream. If you want to reuse this interpreter make sure to call first recycle() and then set the new consumer for the sax events before restarting with the deserialize(InputStream) method.

Version:
$Id: XMLInputStreamInterpreter.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
 
Fields inherited from class org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler
 
Fields inherited from interface org.apache.cocoon.components.sax.XMLByteStreamConstants
CHARACTERS, COMMENT, END_CDATA, END_DOCUMENT, END_DTD, END_ELEMENT, END_ENTITY, END_PREFIX_MAPPING, IGNORABLE_WHITESPACE, LOCATOR, PROCESSING_INSTRUCTION, SKIPPED_ENTITY, START_CDATA, START_DOCUMENT, START_DTD, START_ELEMENT, START_ENTITY, START_PREFIX_MAPPING
 
Constructor Summary
XMLInputStreamInterpreter()
           
 
Method Summary
 void deserialize(InputStream inputStream)
           
protected  int read()
           
protected  int read(byte[] b)
           
 void recycle()
           
 
Methods inherited from class org.apache.cocoon.components.sax.AbstractXMLByteStreamInterpreter
parse, readEvent, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLInputStreamInterpreter

public XMLInputStreamInterpreter()
Method Detail

deserialize

public void deserialize(InputStream inputStream)
                 throws SAXException
Throws:
SAXException

recycle

public void recycle()
Overrides:
recycle in class AbstractXMLByteStreamInterpreter

read

protected int read()
            throws SAXException
Specified by:
read in class AbstractXMLByteStreamInterpreter
Throws:
SAXException

read

protected int read(byte[] b)
            throws SAXException
Specified by:
read in class AbstractXMLByteStreamInterpreter
Throws:
SAXException


Copyright © 1999-2008 The Apache Software Foundation. All Rights Reserved.