Changeset 9169 in josm for trunk/src/org/openstreetmap/josm/io/Compression.java
- Timestamp:
- 2015-12-26T23:41:54+01:00 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/Compression.java
r8929 r9169 50 50 ? ZIP 51 51 : NONE; 52 } 53 54 /** 55 * Determines the compression type based on the content type (MIME type). 56 * @param contentType the content type 57 * @return the compression type 58 */ 59 public static Compression forContentType(String contentType) { 60 switch (contentType) { 61 case "application/zip": 62 return ZIP; 63 case "application/x-gzip": 64 return GZIP; 65 case "application/x-bzip2": 66 return BZIP2; 67 default: 68 return NONE; 69 } 52 70 } 53 71
Note:
See TracChangeset
for help on using the changeset viewer.