本文整理了Java中org.apache.calcite.util.Util.printJavaString()
方法的一些代码示例,展示了Util.printJavaString()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Util.printJavaString()
方法的具体详情如下:
包路径:org.apache.calcite.util.Util
类名称:Util
方法名:printJavaString
[英]Prints a string, enclosing in double quotes (") and escaping if necessary. For examples, printDoubleQuoted(w,"x\"y",false)
prints "x\"y"
.
[中]打印字符串,用双引号(“)括起来,必要时转义。例如,printDoubleQuoted(w,"x\"y",false)
打印"x\"y"
。
代码示例来源:origin: org.apache.calcite/calcite-core
private void assertPrintEquals(
String expect,
String in,
boolean nullMeansNull) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
Util.printJavaString(pw, in, nullMeansNull);
pw.flush();
String out = sw.toString();
assertEquals(expect, out);
}
代码示例来源:origin: Qihoo360/Quicksql
private void assertPrintEquals(
String expect,
String in,
boolean nullMeansNull) {
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
Util.printJavaString(pw, in, nullMeansNull);
pw.flush();
String out = sw.toString();
assertEquals(expect, out);
}
代码示例来源:origin: Qihoo360/Quicksql
printJavaString(pw, (String) o, true);
} else if (
(clazz == Integer.class)
代码示例来源:origin: org.apache.calcite/calcite-core
printJavaString(pw, (String) o, true);
} else if (
(clazz == Integer.class)
代码示例来源:origin: Qihoo360/Quicksql
NlsString nlsString = (NlsString) value;
if (java) {
Util.printJavaString(
pw,
nlsString.getValue(),
代码示例来源:origin: org.apache.calcite/calcite-core
NlsString nlsString = (NlsString) value;
if (java) {
Util.printJavaString(
pw,
nlsString.getValue(),
内容来源于网络,如有侵权,请联系作者删除!