com.atlassian.core.spool
Interface FileFactory

All Known Implementing Classes:
DefaultSpoolFileFactory

public interface FileFactory

Simple strategy interface for creating new files


Method Summary
 File createNewFile()
          Create a new file based on the strategy of the factory.
 

Method Detail

createNewFile

File createNewFile()
                   throws IOException
Create a new file based on the strategy of the factory. Factories should ensure that the file returned exists.

Returns:
A newly created file
Throws:
IOException


Copyright © 2015 Atlassian. All rights reserved.