Java String Quote quote(String filepath)

Here you can find the source of quote(String filepath)

Description

Enclose in quotes, used for paths and filenames that contains spaces

License

Open Source License

Declaration

public static String quote(String filepath) 

Method Source Code

//package com.java2s;
/*//ww  w .  j av a 2 s .c  om
 * @(#)Util.java   1.62 04/06/27
 *
 * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
 * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

public class Main {
    /**
     * Enclose in quotes, used for paths and filenames that contains spaces
     */
    public static String quote(String filepath) {
        return ("\"" + filepath + "\"");
    }
}

Related

  1. quote(Object value)
  2. quote(String content)
  3. quote(String content, String quoteMark)
  4. quote(String content, String quoteMark)
  5. quote(String entityName)
  6. quote(String inp)
  7. quote(String input)
  8. quote(String input)
  9. quote(String literal)