public interface NameGenerator
Modifier and Type | Method and Description |
---|---|
String |
generateName(String nameHint,
String mimeType)
Generates a new name for the location.
|
String generateName(String nameHint, String mimeType) throws ContentIOException
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.Copyright © 2019 Hitachi Vantara. All rights reserved.