Class FileImpl
- All Implemented Interfaces:
File,Serializable
- See Also:
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
FileImpl
public FileImpl()
-
-
Method Details
-
getName
Description copied from interface:FileGets 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.
-
setName
Description copied from interface:FileSets 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.
-
getMimetype
Description copied from interface:FileGets 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.
- Specified by:
getMimetypein interfaceFile- Returns:
- mime type of this file
-
setMimetype
Description copied from interface:FileSets 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.
- Specified by:
setMimetypein interfaceFile- Parameters:
mimetype- mime type for this file
-
getResolution
public double getResolution()Description copied from interface:FileGets 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
- Specified by:
getResolutionin interfaceFile- Returns:
- resolution of this file in dpi
-
setResolution
public void setResolution(double resolution) Description copied from interface:FileSets 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
- Specified by:
setResolutionin interfaceFile- Parameters:
resolution- resolution for this file in dpi
-