Class MimeTypeEntry


  • public class MimeTypeEntry
    extends java.lang.Object
    Represents mapping between the file extension and the MIME type string.
    • Constructor Summary

      Constructors 
      Constructor Description
      MimeTypeEntry​(java.lang.String mime_type, java.lang.String file_ext)
      Create new MimeTypeEntry
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getFileExtension()
      Get the file extension
      java.lang.String getMIMEType()
      Get MIME type string
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • MimeTypeEntry

        public MimeTypeEntry​(java.lang.String mime_type,
                             java.lang.String file_ext)
        Create new MimeTypeEntry
        Parameters:
        mime_type - the MIME type string
        file_ext - the file extension
    • Method Detail

      • getMIMEType

        public java.lang.String getMIMEType()
        Get MIME type string
        Returns:
        the MIME type string
      • getFileExtension

        public java.lang.String getFileExtension()
        Get the file extension
        Returns:
        the file extension
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object