Class NameBaseMimeResolver

java.lang.Object
org.pentaho.platform.plugin.services.importer.NameBaseMimeResolver
All Implemented Interfaces:
org.pentaho.platform.api.mimetype.IPlatformMimeResolver

public class NameBaseMimeResolver extends Object implements org.pentaho.platform.api.mimetype.IPlatformMimeResolver
Resolves mime-types by extension.

User: nbaker Date: 6/18/12

  • Constructor Details

    • NameBaseMimeResolver

      public NameBaseMimeResolver()
  • Method Details

    • resolveMimeForFileName

      public String resolveMimeForFileName(String fileName)
      Specified by:
      resolveMimeForFileName in interface org.pentaho.platform.api.mimetype.IPlatformMimeResolver
    • resolveMimeForBundle

      public String resolveMimeForBundle(org.pentaho.platform.api.repository2.unified.IPlatformImportBundle bundle)
      Specified by:
      resolveMimeForBundle in interface org.pentaho.platform.api.mimetype.IPlatformMimeResolver
    • resolveMimeTypeForFileName

      public org.pentaho.platform.api.mimetype.IMimeType resolveMimeTypeForFileName(String fileName)
      Specified by:
      resolveMimeTypeForFileName in interface org.pentaho.platform.api.mimetype.IPlatformMimeResolver
    • addMimeType

      public void addMimeType(org.pentaho.platform.api.mimetype.IMimeType mimeType)
      Specified by:
      addMimeType in interface org.pentaho.platform.api.mimetype.IPlatformMimeResolver