X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=unused%2Fapache%2Fharmony%2Fluni%2Futil%2FMsgHelp.java;fp=unused%2Fapache%2Fharmony%2Fluni%2Futil%2FMsgHelp.java;h=0000000000000000000000000000000000000000;hb=4f77328104498504339216829abf5ea87e2791ec;hp=c06c4384dcdbb7829fd3b2e35d8fd4aa63d35404;hpb=2b8c0785318a3528e1876e8e2dd48b7d831eae69;p=jalview.git diff --git a/unused/apache/harmony/luni/util/MsgHelp.java b/unused/apache/harmony/luni/util/MsgHelp.java deleted file mode 100644 index c06c438..0000000 --- a/unused/apache/harmony/luni/util/MsgHelp.java +++ /dev/null @@ -1,125 +0,0 @@ -/* - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed with - * this work for additional information regarding copyright ownership. - * The ASF licenses this file to You under the Apache License, Version 2.0 - * (the "License"); you may not use this file except in compliance with - * the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package org.apache.harmony.luni.util; - -/** - * This class contains helper methods for loading resource bundles and - * formatting external message strings. - * - */ - -public final class MsgHelp { - - /** - * Generates a formatted text string given a source string containing - * "argument markers" of the form "{argNum}" where each argNum must be in - * the range 0..9. The result is generated by inserting the toString of each - * argument into the position indicated in the string. - *
- * To insert the "{" character into the output, use a single backslash
- * character to escape it (i.e. "\{"). The "}" character does not need to be
- * escaped.
- *
- * @param format
- * String the format to use when printing.
- * @param args
- * Object[] the arguments to use.
- * @return String the formatted message.
- */
- public static String format(String format, Object[] args) {
- StringBuilder answer = new StringBuilder(format.length()
- + (args.length * 20));
- String[] argStrings = new String[args.length];
- for (int i = 0; i < args.length; ++i) {
- if (args[i] == null)
- argStrings[i] = "