Class FileImpl

  • All Implemented Interfaces:
    File, java.io.Serializable

    public class FileImpl
    extends java.lang.Object
    implements java.io.Serializable, File
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      FileImpl()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMimetype()
      Gets the mime type of this file.
      java.lang.String getName()
      Gets the name of this file.
      double getResolution()
      Gets the resolution of this file.
      void setMimetype​(java.lang.String mimetype)
      Sets the mime type of this file.
      void setName​(java.lang.String name)
      Sets the name of this file.
      void setResolution​(double resolution)
      Sets the resolution of this file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FileImpl

        public FileImpl()
    • Method Detail

      • getName

        public java.lang.String getName()
        Description copied from interface: File

        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.

        Specified by:
        getName in interface File
        Returns:
        name of the file
      • setName

        public void setName​(java.lang.String name)
        Description copied from interface: File

        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.

        Specified by:
        setName in interface File
        Parameters:
        name - the new name
      • getMimetype

        public java.lang.String getMimetype()
        Description copied from interface: File

        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.

        Specified by:
        getMimetype in interface File
        Returns:
        mime type of this file
      • setMimetype

        public void setMimetype​(java.lang.String mimetype)
        Description copied from interface: File

        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.

        Specified by:
        setMimetype in interface File
        Parameters:
        mimetype - mime type for this file
      • getResolution

        public double getResolution()
        Description copied from interface: File

        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

        Specified by:
        getResolution in interface File
        Returns:
        resolution of this file in dpi
      • setResolution

        public void setResolution​(double resolution)
        Description copied from interface: File

        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

        Specified by:
        setResolution in interface File
        Parameters:
        resolution - resolution for this file in dpi