net.sf.exorcist.xml
Class XmlImporter

java.lang.Object
  extended by net.sf.exorcist.xml.XmlImporter
All Implemented Interfaces:
ContentImporter

public class XmlImporter
extends java.lang.Object
implements ContentImporter

Content imports that imports the content XML document to a given output stream.


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

Constructor Detail

XmlImporter

public XmlImporter()
Method Detail

setContent

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

Parameters:
content - XML document stream

importContent

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

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

Specified by:
importContent in interface ContentImporter
Parameters:
state - the content state
Throws:
ContentException - if the content stream can not be written
See Also:
ContentImporter.importContent(ContentState)


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