/*
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
- * Copyright (C) 2014 The Jalview Authors
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
*
* This file is part of Jalview.
*
*/
package jalview.ws.io.mime;
+import java.util.Locale;
+
import jalview.io.packed.DataProvider.JvDataType;
/**
* pair list {String,JvDataType} giving a mime-type followed by its associated
* JvDataType enumeration.
*/
- final public static Object[] typemap = new Object[]
- { "application/x-align", JvDataType.ALIGNMENT,
+ final public static Object[] typemap = new Object[] {
+ "application/x-align", JvDataType.ALIGNMENT,
"application/x-jalview-annotation", JvDataType.ANNOTATION,
"application/x-newick", JvDataType.TREE,
"application/x-new-hampshire", JvDataType.TREE,
*/
public static JvDataType getTypeOf(String mimeType)
{
- String mt = mimeType.toLowerCase();
+ String mt = mimeType.toLowerCase(Locale.ROOT);
for (int i = 0; i < typemap.length; i += 2)
{
if (typemap[i].equals(mt))