Class TestFileTypeMap


  • public class TestFileTypeMap
    extends javax.activation.FileTypeMap
    Test utility library used by FileTypeMap tests.
    • Constructor Summary

      Constructors 
      Constructor Description
      TestFileTypeMap()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getContentType​(java.io.File f)  
      java.lang.String getContentType​(java.lang.String filename)  
      static java.lang.String getTestType()  
      • Methods inherited from class javax.activation.FileTypeMap

        getDefaultFileTypeMap, setDefaultFileTypeMap
      • Methods inherited from class java.lang.Object

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

      • TestFileTypeMap

        public TestFileTypeMap()
    • Method Detail

      • getTestType

        public static java.lang.String getTestType()
      • getContentType

        public java.lang.String getContentType​(java.io.File f)
        Specified by:
        getContentType in class javax.activation.FileTypeMap
      • getContentType

        public java.lang.String getContentType​(java.lang.String filename)
        Specified by:
        getContentType in class javax.activation.FileTypeMap