org.exist.protocolhandler.embedded
Class EmbeddedDownload

java.lang.Object
  extended by org.exist.protocolhandler.embedded.EmbeddedDownload

public class EmbeddedDownload
extends Object

Read document from an embedded database and write the data into an output stream.

Author:
Dannes Wessels

Constructor Summary
EmbeddedDownload()
           
 
Method Summary
 void stream(XmldbURL xmldbURL, OutputStream os)
          Write document referred by URL to an (output)stream.
 void stream(XmldbURL xmldbURL, OutputStream os, User user)
          Write document referred by URL to an (output)stream as specified user.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmbeddedDownload

public EmbeddedDownload()
Method Detail

stream

public void stream(XmldbURL xmldbURL,
                   OutputStream os)
            throws IOException
Write document referred by URL to an (output)stream.

Parameters:
xmldbURL - Document location in database.
os - Stream to which the document is written.
Throws:
IOException

stream

public void stream(XmldbURL xmldbURL,
                   OutputStream os,
                   User user)
            throws IOException
Write document referred by URL to an (output)stream as specified user.

Parameters:
user - Effective user for operation. If NULL the user information is distilled from the URL.
xmldbURL - Document location in database.
os - Stream to which the document is written.
Throws:
IOException


Copyright (C) Wolfgang Meier. All rights reserved.