@@ -0,0 +1,1163 @@
+/*-%0A * Copyright (c) 2012 Red Hat, Inc.%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0Apackage org.fedoraproject.maven.utils;%0A%0Apublic class StringSplitter%0A%7B%0A    public static String%5B%5D split( String s, int n, char delim )%0A    %7B%0A        String%5B%5D tokens = new String%5Bn%5D;%0A        s += new String( new char%5Bn%5D ).replace( '%5C0', delim );%0A%0A        for ( int i = 0; i %3C n; i++ )%0A        %7B%0A            int j = s.indexOf( delim );%0A%0A            String tok = s.substring( 0, j ).trim();%0A            if ( tok.equals( %22%22 ) )%0A                tok = null;%0A%0A            s = s.substring( j + 1 );%0A            tokens%5Bi%5D = tok;%0A        %7D%0A%0A        return tokens;%0A    %7D%0A%7D%0A

Implement StringSplitter