com.atlassian.core.spool
Class BufferedFileSpool

java.lang.Object
  extended by com.atlassian.core.spool.BufferedFileSpool
All Implemented Interfaces:
FileSpool, Spool

public class BufferedFileSpool
extends java.lang.Object
implements FileSpool

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

See Also:
SpoolFileInputStream

Constructor Summary
BufferedFileSpool()
           
 
Method Summary
 FileFactory getFileFactory()
           
 void setFileFactory(FileFactory fileFactory)
           
 java.io.InputStream spool(java.io.InputStream is)
          Return a new InputStream to the data provided.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BufferedFileSpool

public BufferedFileSpool()
Method Detail

getFileFactory

public FileFactory getFileFactory()
Specified by:
getFileFactory in interface FileSpool

setFileFactory

public void setFileFactory(FileFactory fileFactory)
Specified by:
setFileFactory in interface FileSpool

spool

public java.io.InputStream spool(java.io.InputStream is)
                          throws java.io.IOException
Description copied from interface: Spool
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.

Specified by:
spool in interface Spool
Parameters:
is - - Source stream to be spooled
Returns:
Spooled stream
Throws:
java.io.IOException


Copyright © 2009 Atlassian Pty Ltd. All Rights Reserved.