Java String Quote quoteAndEscapeValue(String serviceQName)

Here you can find the source of quoteAndEscapeValue(String serviceQName)

Description

quote And Escape Value

License

Open Source License

Declaration

private static String quoteAndEscapeValue(String serviceQName) 

Method Source Code

//package com.java2s;
/*/* ww w . j  a  va  2 s.co m*/
 * Copyright (c) 2013 Cisco Systems, Inc. and others.  All rights reserved.
 *
 * This program and the accompanying materials are made available under the
 * terms of the Eclipse Public License v1.0 which accompanies this distribution,
 * and is available at http://www.eclipse.org/legal/epl-v10.html
 */

public class Main {
    private static final String REPLACED_QUOTATION_MARK = "\\?";

    private static String quoteAndEscapeValue(String serviceQName) {
        return "\"" + serviceQName.replace("?", REPLACED_QUOTATION_MARK)
                + "\"";
    }
}

Related

  1. quote(StringBuilder sb, String str)
  2. quote4CMDLine(String str)
  3. quoteAndClean(String str)
  4. quoteAndEscape(String str)
  5. quoteAndEscapeFilename(String filename)
  6. quoteArg(final String arg)
  7. quoteArg(String arg)
  8. quoteArgForCommand(String input)
  9. quoteArgument(final String argument)