com.oreilly.servlet.multipart.FileRenamePolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cos Show documentation
Show all versions of cos Show documentation
Cos.
The version 2024.5.0.0 is for Servlet 5.0.0.
The newest version!
// Copyright (C) 2002 by Jason Hunter .
// All rights reserved. Use of this class is limited.
// Please see the LICENSE for more information.
package com.oreilly.servlet.multipart;
import java.io.*;
/**
* An interface to provide a pluggable file renaming policy, particularly
* useful to handle naming conflicts with an existing file.
*
* @author Jason Hunter
* @version 1.0, 2002/04/30, initial revision, thanks to Changshin Lee for
* the basic idea
*/
public interface FileRenamePolicy {
/**
* Returns a File object holding a new name for the specified file.
*
* @see FilePart#writeTo(File fileOrDirectory)
* @param f ...
* @return ...
*/
File rename(File f);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy