X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fws%2Fio%2Fmime%2FMimeTypes.java;h=7e6e66055796cbaecdd05bc61b898bc1d67467a1;hb=41b0e9331ac71787c1280aa1d809f54c575fbf97;hp=38aa304d0bdfe482accfe10470a2006ea31ed828;hpb=b57a02c25e335d033c97f8a6bacd6b54f62bd2b6;p=jalview.git
diff --git a/src/jalview/ws/io/mime/MimeTypes.java b/src/jalview/ws/io/mime/MimeTypes.java
index 38aa304d..7e6e660 100644
--- a/src/jalview/ws/io/mime/MimeTypes.java
+++ b/src/jalview/ws/io/mime/MimeTypes.java
@@ -1,22 +1,27 @@
-/*******************************************************************************
- * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
- * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
- *
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
* This file is part of Jalview.
- *
+ *
* Jalview is free software: you can redistribute it and/or
* modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
- *
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
* Jalview is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty
* of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along with Jalview. If not, see .
- *******************************************************************************/
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
package jalview.ws.io.mime;
+import java.util.Locale;
+
import jalview.io.packed.DataProvider.JvDataType;
/**
@@ -31,8 +36,8 @@ public class MimeTypes
* 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,
@@ -50,7 +55,7 @@ public class MimeTypes
*/
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))
@@ -77,4 +82,4 @@ public class MimeTypes
}
return null;
}
-}
\ No newline at end of file
+}