X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fjavascript%2Fjson%2FJSON.java;fp=src%2Fjalview%2Fjavascript%2Fjson%2FJSON.java;h=30e333647630f1765e92326dac42c7a6e831cc01;hb=3459a8a691cb22508d7067f240b7254e588e77d3;hp=4e9d1dd5707d536428295dcf95921849f8a59cee;hpb=5b27f1062b2203c4c31702e205f4c78e1992063e;p=jalview.git diff --git a/src/jalview/javascript/json/JSON.java b/src/jalview/javascript/json/JSON.java index 4e9d1dd..30e3336 100644 --- a/src/jalview/javascript/json/JSON.java +++ b/src/jalview/javascript/json/JSON.java @@ -1,3 +1,23 @@ +/* + * 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. + * + * 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 . + * The Jalview Authors are detailed in the 'AUTHORS' file. + */ package jalview.javascript.json; import java.io.BufferedReader; @@ -19,27 +39,35 @@ import java.net.URL; * @author hansonr Bob Hanson St. Olaf College 1/24/2019 * */ -public class JSON { - - /** - * A simple encoding of sequential key/value pairs for a jQuery.ajax call. If - * the first key is "url" and the second is an object, then the ajax object is - * attached to that url as well, just for transport purposes within the system. - * - * @param keyValues assumed to be simple String,Object pairs. String objects - * will be surrounded by double quotes. - */ - @SuppressWarnings("static-access") - public static Object setAjax(Object... keyValues) { - return /** @j2sNative swingjs.JSUtil.setAjax$OA(keyValues) || */null; - } - - public static void setAjax(URL url) { +public class JSON +{ + + /** + * A simple encoding of sequential key/value pairs for a jQuery.ajax call. If + * the first key is "url" and the second is an object, then the ajax object is + * attached to that url as well, just for transport purposes within the + * system. + * + * @param keyValues + * assumed to be simple String,Object pairs. String objects will be + * surrounded by double quotes. + */ + @SuppressWarnings("static-access") + public static Object setAjax(Object... keyValues) + { + return /** @j2sNative swingjs.JSUtil.setAjax$OA(keyValues) || */ + null; + } + + public static void setAjax(URL url) + { /** @j2sNative swingjs.JSUtil.setAjax$java_net_URL(url); */ - } + } - public static BufferedReader getJSONReader(InputStream is) { - return /** @j2sNative swingjs.JSUtil.getJSONReader$O(is) || */null; + public static BufferedReader getJSONReader(InputStream is) + { + return /** @j2sNative swingjs.JSUtil.getJSONReader$O(is) || */ + null; } /** @@ -54,8 +82,10 @@ public class JSON { null; } - public static String stringify(Object obj) { - return /** @j2sNative swingjs.JSUtil.stringifyJSON$O(obj) || */null; - } + public static String stringify(Object obj) + { + return /** @j2sNative swingjs.JSUtil.stringifyJSON$O(obj) || */ + null; + } }