com.atlassian.core.spool
Class BufferedFileSpool
java.lang.Object
com.atlassian.core.spool.BufferedFileSpool
- All Implemented Interfaces:
- FileSpool, Spool
public class BufferedFileSpool
- extends Object
- implements FileSpool
Spool bytes via buffered file streams. The returned input stream is a SpoolFileInputStream
- See Also:
SpoolFileInputStream
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BufferedFileSpool
public BufferedFileSpool()
getFileFactory
public FileFactory getFileFactory()
- Specified by:
getFileFactory in interface FileSpool
setFileFactory
public void setFileFactory(FileFactory fileFactory)
- Specified by:
setFileFactory in interface FileSpool
spool
public InputStream spool(InputStream is)
throws 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:
IOException
Copyright © 2015 Atlassian. All rights reserved.