aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/rss/Utils.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-06-30 13:50:47 +0300
committerGravatar Vitaly Takmazov2016-06-30 13:50:47 +0300
commitbe18339f67341c02a071eddde94d230384a40a41 (patch)
tree2e8a6fa79c01bdf1ca9697281b5ce998a1c1af6e /src/main/java/com/juick/rss/Utils.java
parent4d0d91d9cb408d0a323b18c1e5e609d74bdbba4c (diff)
update deps and apply changes
Diffstat (limited to 'src/main/java/com/juick/rss/Utils.java')
-rw-r--r--src/main/java/com/juick/rss/Utils.java38
1 files changed, 0 insertions, 38 deletions
diff --git a/src/main/java/com/juick/rss/Utils.java b/src/main/java/com/juick/rss/Utils.java
index a6842fe1..036a5a6b 100644
--- a/src/main/java/com/juick/rss/Utils.java
+++ b/src/main/java/com/juick/rss/Utils.java
@@ -17,50 +17,12 @@
*/
package com.juick.rss;
-import java.sql.ResultSet;
-import java.sql.SQLException;
-import java.sql.Statement;
-import java.util.ArrayList;
-
/**
*
* @author ugnich
*/
public class Utils {
- public static void finishSQL(ResultSet rs, Statement stmt) {
- if (rs != null) {
- try {
- rs.close();
- } catch (SQLException e) {
- }
- }
- if (stmt != null) {
- try {
- stmt.close();
- } catch (SQLException e) {
- }
- }
- }
-
- public static String convertArray2String(ArrayList<Integer> mids) {
- String q = "";
- for (int i = 0; i < mids.size(); i++) {
- if (i > 0) {
- q += ",";
- }
- q += mids.get(i);
- }
- return q;
- }
-
- public static String encodeHTML(String str) {
- String ret = str;
- ret = ret.replaceAll("<", "&lt;");
- ret = ret.replaceAll(">", "&gt;");
- return str;
- }
-
public static int parseInt(String str, int def) {
int ret = def;
if (str != null) {