/** * Allocates a new temporary file. * * @param baseName the base file name. * @return The created File. * @throws FileSystemException if an error occurs. */ @Override public File allocateFile(final String baseName) throws FileSystemException { // Create a unique-ish file name final String basename = createFilename(baseName); synchronized (this) { filecount++; } return createAndAddFile(tempDir, basename); }
/** * Allocates a new temporary file. * * @param baseName the base file name. * @return The created File. * @throws FileSystemException if an error occurs. */ @Override public File allocateFile(final String baseName) throws FileSystemException { // Create a unique-ish file name final String basename = createFilename(baseName); synchronized (this) { filecount++; } return createAndAddFile(tempDir, basename); }
/** * Allocates a new temporary file. * * @param baseName the base file name. * @return The created File. * @throws FileSystemException if an error occurs. */ @Override public File allocateFile(final String baseName) throws FileSystemException { // Create a unique-ish file name final String basename = createFilename(baseName); synchronized (this) { filecount++; } return createAndAddFile(tempDir, basename); }
/** * Allocates a new temporary file. * * @param baseName the base file name. * @return The created File. * @throws FileSystemException if an error occurs. */ @Override public File allocateFile(final String baseName) throws FileSystemException { // Create a unique-ish file name final String basename = createFilename(baseName); synchronized (this) { filecount++; } return createAndAddFile(tempDir, basename); }