Java String Quote quote(String tableName)

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

Description

quote

License

Open Source License

Declaration

public static String quote(String tableName) 

Method Source Code

//package com.java2s;
/* (c) 2017 Open Source Geospatial Foundation - all rights reserved
 * This code is licensed under the GPL 2.0 license, available at the root
 * application directory./*from w  w  w  . j a va2s  . c o  m*/
 */

public class Main {
    public static String quote(String tableName) {
        String[] parts = tableName.split("\\.");
        StringBuffer sb = new StringBuffer();
        for (String part : parts) {
            sb.append("\"").append(part).append("\"").append(".");
        }
        sb.setLength(sb.length() - 1);
        return sb.toString();
    }
}

Related

  1. quote(String string)
  2. quote(String string)
  3. quote(String string, boolean escapeHtml)
  4. quote(String string, String charsToQuote)
  5. quote(String string, StringBuilder w)
  6. quote(String text)
  7. quote(String text)
  8. quote(String text)
  9. quote(String text)