com.atlassian.plugin.cache.filecache
Interface FileCacheStreamProvider


public interface FileCacheStreamProvider

Interface used by the file caching system. Items wishing to participate in file caching will need to implement this interface. This interface gives the file cache a means to get hold of the contents that will be cached.

Since:
v2.13

Method Summary
 void writeStream(OutputStream dest)
          Produce the complete stream and write to the designated output stream.
 

Method Detail

writeStream

void writeStream(OutputStream dest)
                 throws DownloadException
Produce the complete stream and write to the designated output stream. Classes implementing this method should not close the output stream.

Parameters:
dest - designated output stream.
Throws:
DownloadException - If something goes awry while writing the file.


Copyright © 2013 Atlassian. All Rights Reserved.