Interface File
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
FileImpl
-
Method Summary
Modifier and TypeMethodDescriptionGets the mime type of this file.getName()Gets the name of this file.doubleGets the resolution of this file.voidsetMimetype(String mimetype) Sets the mime type of this file.voidSets the name of this file.voidsetResolution(double resolution) Sets the resolution of this file.
-
Method Details
-
getName
String getName()Gets the name of this file.
Gets the name of this file. The name is the relative path of the file within the meta data archive.
- Returns:
- name of the file
-
setName
Sets the name of this file.
Sets the name of this file. The name must be the relative path of the file within the meta data archive.
- Parameters:
name- the new name
-
getMimetype
String getMimetype()Gets the mime type of this file.
Gets the mime type of this file in the common format media-type/subtype-identifier, e.g. image/jpeg or application/xml.
- Returns:
- mime type of this file
-
setMimetype
Sets the mime type of this file.
Sets the mime type of this file. The type must be provided in the common format media-type/subtype-identifier, e.g. image/jpeg or application/xml.
- Parameters:
mimetype- mime type for this file
-
getResolution
double getResolution()Gets the resolution of this file.
Gets the resolution of this file in dpi. If the file has no resolution (e.g. XML files), this attribute may be omitted or just be set to 0.0
- Returns:
- resolution of this file in dpi
-
setResolution
void setResolution(double resolution) Sets the resolution of this file.
Sets the resolution of this file in dpi. If the file has no resolution (e.g. XML files), this attribute may be omitted or just be set to 0.0
- Parameters:
resolution- resolution for this file in dpi
-