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

java.lang.Object
  extended by org.knime.core.data.xml.io.XMLCellWriterFactory

public class XMLCellWriterFactory
extends Object

Factory class to create @link{XMLCellWriter}.

Author:
Heiko Hofer

Constructor Summary
XMLCellWriterFactory()
           
 
Method Summary
static XMLCellWriter createXMLCellWriter(OutputStream os)
          Create writer to write xml cells.
static XMLCellWriter createXMLCellWriter(OutputStream os, boolean writeHeader)
          Create writer to write xml cells.
static XMLCellWriter createXMLMultiCellWriter(OutputStream os, QName rootElement, Map<QName,String> rootAttributes)
          Create writer to write xml cells enclosed in the given root element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLCellWriterFactory

public XMLCellWriterFactory()
Method Detail

createXMLCellWriter

public static XMLCellWriter createXMLCellWriter(OutputStream os)
                                         throws IOException
Create writer to write xml cells.

Parameters:
os - the xml cells are written to this resource.
Returns:
the @link{XMLWriter}
Throws:
IOException - when writer could not be initialized and when header could not be written

createXMLCellWriter

public static XMLCellWriter createXMLCellWriter(OutputStream os,
                                                boolean writeHeader)
                                         throws IOException
Create writer to write xml cells. This writer can be configured to skip writing the header.

Parameters:
os - the xml cells are written to this resource.
writeHeader - true when the xml header should be written.
Returns:
the @link{XMLWriter}
Throws:
IOException - when writer could not be initialized and when header could not be written

createXMLMultiCellWriter

public static XMLCellWriter createXMLMultiCellWriter(OutputStream os,
                                                     QName rootElement,
                                                     Map<QName,String> rootAttributes)
                                              throws IOException
Create writer to write xml cells enclosed in the given root element.

Parameters:
os - the xml cells are written to this resource.
rootElement - the qualified name of the root element
rootAttributes - the attributes of the root element
Returns:
the @link{XMLWriter}
Throws:
IOException - when writer could not be initialized and when header could not be written


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.