public class TempFileNameGenerator extends Object implements NameGenerator
Constructor and Description |
---|
TempFileNameGenerator(FileContentLocation fileContentLocation) |
public TempFileNameGenerator(FileContentLocation fileContentLocation)
public String generateName(String nameHint, String mimeType) throws ContentIOException
generateName
in interface NameGenerator
nameHint
- the name hint, usually a identifier for the new filename (can be null).mimeType
- the mime type of the new filename. Usually used to compute a suitable file-suffix.ContentIOException
- if the name could not be generated for any
reason.