Here you can find the source of deleteWhiteSpaces(String nodeValue)
@SuppressWarnings("deprecation") private static String deleteWhiteSpaces(String nodeValue)
//package com.java2s; /**/*from w ww . j ava 2 s .c o m*/ * Copyright (c) 2008-2011, FAST Consortium * * This file is part of FAST Platform. * * FAST Platform is free software: you can redistribute it and/or modify * it under the terms of the GNU Affero General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * FAST Platform 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 Affero General Public * License for more details. * * You should have received a copy of the GNU Affero General Public License * along with FAST Platform. If not, see <http://www.gnu.org/licenses/>. * * Info about members and contributors of the FAST Consortium * is available at http://fast.morfeo-project.eu * **/ public class Main { @SuppressWarnings("deprecation") private static String deleteWhiteSpaces(String nodeValue) { //jump over first whitespaces, if there are some int pos = 0; while (Character.isSpace(nodeValue.charAt(pos))) { pos++; } return nodeValue.substring(pos, nodeValue.length()); } }