net.sf.doolin.oxml.source
Class StreamOXMLSource

java.lang.Object
  extended by net.sf.doolin.oxml.source.AbstractOXMLSource
      extended by net.sf.doolin.oxml.source.StreamOXMLSource
All Implemented Interfaces:
OXMLSource
Direct Known Subclasses:
FileOXMLSource

public class StreamOXMLSource
extends AbstractOXMLSource

DOM extracted from an IO stream.

Author:
Damien Coraboeuf

Constructor Summary
StreamOXMLSource(InputStream in)
          Constructs a source from a stream.
 
Method Summary
 void close()
          Does nothing.
protected  void closeStream()
          Internal protected method to close the stream.
 Document getSource()
          Gets the XML source as a DOM
 
Methods inherited from class net.sf.doolin.oxml.source.AbstractOXMLSource
getBuilder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamOXMLSource

public StreamOXMLSource(InputStream in)
Constructs a source from a stream.

Parameters:
in - Stream to read
Method Detail

close

public void close()
           throws IOException
Does nothing. This is the responsability of the one which has created the stream to close it.

Throws:
IOException - If the source cannot be closed
See Also:
OXMLSource.close()

closeStream

protected void closeStream()
                    throws IOException
Internal protected method to close the stream.

Throws:
IOException - If the stream cannot be closed.

getSource

public Document getSource()
                   throws IOException
Description copied from interface: OXMLSource
Gets the XML source as a DOM

Returns:
DOM
Throws:
IOException - If the DOM cannot be read


Copyright © 2011. All Rights Reserved.