Skip to content

Commit 90341f8

Browse files
committed
added more tool functions to new tool class CCJSqlParserUtil
1 parent 56fe655 commit 90341f8

File tree

1 file changed

+1
-29
lines changed

1 file changed

+1
-29
lines changed

src/main/java/net/sf/jsqlparser/parser/CCJSqlParserManager.java

Lines changed: 1 addition & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -42,32 +42,4 @@ public Statement parse(Reader statementReader) throws JSQLParserException {
4242
throw new JSQLParserException(e);
4343
}
4444
}
45-
46-
public static Statement parse(String sql) throws JSQLParserException {
47-
CCJSqlParser parser = new CCJSqlParser(new StringReader(sql));
48-
try {
49-
return parser.Statement();
50-
} catch (Throwable e) {
51-
throw new JSQLParserException(e);
52-
}
53-
}
54-
55-
public static Statement parse(InputStream is) throws JSQLParserException {
56-
CCJSqlParser parser = new CCJSqlParser(is);
57-
try {
58-
return parser.Statement();
59-
} catch (Throwable e) {
60-
throw new JSQLParserException(e);
61-
}
62-
}
63-
64-
public static Statement parse(InputStream is, String encoding) throws JSQLParserException {
65-
CCJSqlParser parser = new CCJSqlParser(is,encoding);
66-
try {
67-
return parser.Statement();
68-
} catch (Throwable e) {
69-
throw new JSQLParserException(e);
70-
}
71-
}
72-
}
73-
45+
}

0 commit comments

Comments
 (0)