net.sf.exorcist.xml
Class XmlExporter

java.lang.Object
  extended by net.sf.exorcist.xml.XmlExporter
All Implemented Interfaces:
ContentExporter

public class XmlExporter
extends java.lang.Object
implements ContentExporter

Content exporter that exports the content XML document from a given input stream.


Constructor Summary
XmlExporter()
           
 
Method Summary
 void exportContent(ContentState state)
          Copies the XML document from the configured content stream into the given content state.
 void setContent(java.io.InputStream content)
          Sets the XML document stream to be exported.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlExporter

public XmlExporter()
Method Detail

setContent

public void setContent(java.io.InputStream content)
Sets the XML document stream to be exported.

Parameters:
content - XML document stream

exportContent

public void exportContent(ContentState state)
                   throws ContentException
Copies the XML document from the configured content stream into the given content state.

Note that at the moment this method does not parse or validate the XML document stream.

Specified by:
exportContent in interface ContentExporter
Parameters:
state - the content state
Throws:
ContentException - if the content stream can not be read
See Also:
ContentExporter.exportContent(ContentState)


Copyright © 2005 The Exorcist Team @ SourceForge. All Rights Reserved.