Interface File
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
FileImpl
public interface File extends java.io.Serializable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringgetMimetype()Gets the mime type of this file.java.lang.StringgetName()Gets the name of this file.doublegetResolution()Gets the resolution of this file.voidsetMimetype(java.lang.String mimetype)Sets the mime type of this file.voidsetName(java.lang.String name)Sets the name of this file.voidsetResolution(double resolution)Sets the resolution of this file.
-
-
-
Method Detail
-
getName
java.lang.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
void setName(java.lang.String name)
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
java.lang.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
void setMimetype(java.lang.String mimetype)
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
-
-