Package io.jmix.core
Class FileRef
java.lang.Object
io.jmix.core.FileRef
- All Implemented Interfaces:
Serializable
A reference pointing to a file located in
FileStorage
.- See Also:
-
Constructor Summary
ConstructorDescriptionCreates file reference for the given storage name, path and file name.Creates file reference for the given storage name, path, file name and parameters. -
Method Summary
Modifier and TypeMethodDescriptionvoid
addParameter
(String key, String value) Add a parameter.static FileRef
Creates file reference for the given storage name, path and file name.boolean
static FileRef
fromString
(String fileRefString) CreatesFileRef
object from its string representation.Returns content type according to MIME standard.Returns file name.Returns parameters.getPath()
Returns path inside storage.Returns storage name.int
hashCode()
toString()
-
Constructor Details
-
FileRef
Creates file reference for the given storage name, path, file name and parameters. -
FileRef
Creates file reference for the given storage name, path and file name.
-
-
Method Details
-
create
Creates file reference for the given storage name, path and file name. -
getStorageName
Returns storage name. -
getPath
Returns path inside storage. -
getFileName
Returns file name. -
getParameters
Returns parameters. -
addParameter
Add a parameter. -
fromString
CreatesFileRef
object from its string representation. -
toString
-
getContentType
Returns content type according to MIME standard. -
equals
-
hashCode
public int hashCode()
-