public class

BufferedFileSpool

extends Object
implements FileSpool
java.lang.Object
   ↳ com.atlassian.core.spool.BufferedFileSpool

Class Overview

Spool bytes via buffered file streams. The returned input stream is a SpoolFileInputStream

Summary

Public Constructors
BufferedFileSpool()
Public Methods
FileFactory getFileFactory()
void setFileFactory(FileFactory fileFactory)
InputStream spool(InputStream is)
Return a new InputStream to the data provided.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.core.spool.FileSpool
From interface com.atlassian.core.spool.Spool

Public Constructors

public BufferedFileSpool ()

Public Methods

public FileFactory getFileFactory ()

public void setFileFactory (FileFactory fileFactory)

public InputStream spool (InputStream is)

Return a new InputStream to the data provided. Implementations should guarantee that the returned input stream is independent of the stream passed in. For example, the returned InputStream should still be useable once the original InputStream is closed and its associated resources are released.

Parameters
is - Source stream to be spooled
Returns
  • Spooled stream
Throws
IOException