Arch4J 1.1

org.arch4j.xml
Class DefaultXMLStream

java.lang.Object
  |
  +--org.arch4j.xml.DefaultXMLStream
All Implemented Interfaces:
XMLStream

public class DefaultXMLStream
extends Object
implements XMLStream

This class provides a default implementation of the XMLStream interface. It merely reports that it cannot parse the given data stream. This is a hint that an implementation of SAX needs to be put into place and a corresponding XMLStream class be built and referenced in the properties file.

Version:
1.0
Author:
Ross E. Greinke

Constructor Summary
DefaultXMLStream()
          Constructs a DefaultXMLStream.
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultXMLStream

public DefaultXMLStream()
Constructs a DefaultXMLStream.

Method Detail

setReader

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

Specified by:
setReader in interface XMLStream
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.

Specified by:
setHandler in interface XMLStream
Parameters:
callbackHandler - The handler that will be called back during parsing.

parse

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

Specified by:
parse in interface XMLStream
Throws:
XMLException - If the data stream cannot be parsed.

Arch4J 1.1

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