org.knime.core.data.xml.io
Class XMLDOMCellReader

java.lang.Object
  extended by org.knime.core.data.xml.io.XMLDOMCellReader
All Implemented Interfaces:
XMLCellReader

 class XMLDOMCellReader
extends Object
implements XMLCellReader

A @link{XMLCellReader} to read a single cell from given

Author:
Heiko Hofer

Constructor Summary
XMLDOMCellReader(InputStream is)
          Create a new instance of a @link{XMLCellReader} to read a single cell from given @link{InputStream}.
 
Method Summary
 void close()
          Closes any resources need for the read process.
 XMLValue readXML()
          Reads the next XML @link{DataCell}.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLDOMCellReader

public XMLDOMCellReader(InputStream is)
                 throws ParserConfigurationException
Create a new instance of a @link{XMLCellReader} to read a single cell from given @link{InputStream}.

Parameters:
is - the resource to read from
Throws:
ParserConfigurationException - when the factory object for DOMs could not be created.
Method Detail

readXML

public XMLValue readXML()
                 throws IOException
Reads the next XML @link{DataCell}.

Specified by:
readXML in interface XMLCellReader
Returns:
The next @link{DataCell} or null when there is nothing to read. Note that this data cell implements @link{XMLValue}.
Throws:
IOException - If an error occurred during the read process.

close

public void close()
           throws IOException
Closes any resources need for the read process.

Specified by:
close in interface XMLCellReader
Throws:
IOException - If an error occurred.


Copyright, 2003 - 2012. All rights reserved.
University of Konstanz, Germany.
Chair for Bioinformatics and Information Mining, Prof. Dr. Michael R. Berthold.
You may not modify, publish, transmit, transfer or sell, reproduce, create derivative works from, distribute, perform, display, or in any way exploit any of the content, in whole or in part, except as otherwise expressly permitted in writing by the copyright owner or as specified in the license file distributed with this product.