Package 

Class MimeInfoExtension

  • All Implemented Interfaces:

    
    public class MimeInfoExtension
    
                        

    MimeInfo plugin extension.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final Map<File, MimeInfoSpecs> mimeInfoFiles
    • Constructor Summary

      Constructors 
      Constructor Description
      MimeInfoExtension(Project project)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Map<File, MimeInfoSpecs> getMimeInfoFiles() The MimeInfoSpecs with the given file name.
      final Unit mimeinfo(String fileName, Function1<MimeInfoContext, Unit> configuration) Define a new MimeInfo object in the plugin configuration.
      • Methods inherited from class java.lang.Object

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

      • MimeInfoExtension

        MimeInfoExtension(Project project)
    • Method Detail

      • mimeinfo

         final Unit mimeinfo(String fileName, Function1<MimeInfoContext, Unit> configuration)

        Define a new MimeInfo object in the plugin configuration.

        Parameters:
        fileName - The temporary file name where to save the MimeInfo specification.
        configuration - The configuration to be called on the MimeInfo context.