Arch4J 1.1

org.arch4j.xml
Interface XMLStream

All Known Implementing Classes:
DefaultXMLStream, XercesXMLStream

public interface XMLStream

This class defines an interface that a provider can implement to have an XML file parsed.

Version:
1.0
Author:
Ross E. Greinke

Method Summary
 void parse()
          Parse the data in the stream.
 void setHandler(XMLHandler callbackHandler)
          Set the handler that will receive callbacks during parsing.
 void setReader(Reader characterStream)
          Set a Reader which has been opened on the data to parse.
 

Method Detail

setReader

public void setReader(Reader characterStream)
Set a Reader which has been opened on the data to parse.

Parameters:
characterStream - The stream upon which to read the data to parse.

setHandler

public void setHandler(XMLHandler callbackHandler)
Set the handler that will receive callbacks during parsing.

Parameters:
callbackHandler - The handler that will be called back during parsing.

parse

public void parse()
           throws XMLException
Parse the data in the stream.

Throws:
XMLException - If the data stream cannot be parsed.

Arch4J 1.1

Copyright © 2000-2004 SpiderLogic, a service of Wipfli Ullrich Bertelson LLP.