org.n52.security.common.xml
Class XMLChunkReader

java.lang.Object
  extended by org.n52.security.common.xml.XMLChunkReader

public class XMLChunkReader
extends Object

Reads an xml document with an internal xml stream reader and as chunks and calls a subsets of XMLStreamChunkHandler instances.

Xml elements for which no handler is defined are simply skipped.

Version:
$Revision: $
Author:
Marko Reiprecht Created on 18.04.2008

Constructor Summary
XMLChunkReader()
           
 
Method Summary
 XMLChunkReader addHandler(QName qname, XMLChunkHandler handler)
          Method registers a PartialStreamHandler for a Qname.
 XMLChunkHandler getHandler(QName qname)
          Method gets the Handler for the qname.
 void read(InputSource source)
          Method reads an xml source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLChunkReader

public XMLChunkReader()
Method Detail

addHandler

public XMLChunkReader addHandler(QName qname,
                                 XMLChunkHandler handler)
Method registers a PartialStreamHandler for a Qname.

Parameters:
qname - the qname.
handler - the handler.
Returns:
this.

getHandler

public XMLChunkHandler getHandler(QName qname)
Method gets the Handler for the qname.

Parameters:
qname - the qname.
Returns:
XmlPartialStreamHandler.

read

public void read(InputSource source)
Method reads an xml source.

Parameters:
source - the source.
Throws:
XMLStreamException - if error occurs.


Copyright © 2004–2014 52north.org. All rights reserved.