Sha256: 9acfadf9300b4c58b3a1adbb54b51c11d2abd8e9092121555b28a6810d9a9fde

Contents?: true

Size: 742 Bytes

Versions: 46

Compression:

Stored size: 742 Bytes

Contents

package com.highcharts.export.util;

import java.util.EnumSet;
import java.util.HashMap;
import java.util.Map;

public enum MimeType 
{
     PNG("image/png"),
     JPEG("image/jpeg"),
     PDF("application/pdf"),
     SVG("image/svg+xml");
     
     private static final Map<String,MimeType> lookup 
          = new HashMap<String,MimeType>();
     
     static {
          for(MimeType m : EnumSet.allOf(MimeType.class))
               lookup.put(m.getType(), m);
     }     
     
     private String type;
        		  
     private MimeType(String type) {
          this.type = type;
     }

     public String getType() { return type; }

     public static MimeType get(String type) {
    	  
          return lookup.get(type); 
     }
}

Version data entries

46 entries across 23 versions & 1 rubygems

Version Path
rearview-1.2.3-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.3-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.2.rc.2-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.2.rc.2-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.2.rc.1-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.2.rc.1-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.1-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.1-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.0-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.2.0-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.2-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.2-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.1-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.1-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.0-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.1.0-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.0.3.rc.4-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.0.3.rc.4-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.0.3.rc.3-jruby public/rearview-src/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java
rearview-1.0.3.rc.3-jruby public/rearview/vendor/highcharts/exporting-server/java/highcharts-export/src/main/java/com/highcharts/export/util/MimeType.java