View Javadoc

1   package com.atlassian.core.spool;
2   
3   import java.io.File;
4   import java.io.IOException;
5   
6   /**
7    * Simple strategy interface for creating new files
8    */
9   public interface FileFactory
10  {
11      /** Create a new file based on the strategy of the factory. Factories should ensure that the file returned exists.
12       *
13       * @return A newly created file
14       * @throws IOException
15       */
16      File createNewFile() throws IOException;
17  }