Here you can find the source of quote(String filepath)
public static String quote(String filepath)
//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 + "\""); } }