#493 Missing/Lost search results: fixed, swf, zip and binary files temporary disabled

This commit is contained in:
Honfika
2014-01-20 22:49:32 +01:00
parent c098b874c5
commit 254b91dd5d
12 changed files with 62 additions and 29 deletions
+28
View File
@@ -330,6 +330,34 @@ public class Helper {
return ret;
}
public static String joinStrings(List<String> arr, String formatString, String glue) {
String ret = "";
boolean first = true;
for (String s : arr) {
if (!first) {
ret += glue;
} else {
first = false;
}
ret += String.format(formatString, s);
}
return ret;
}
public static String joinStrings(String[] arr, String formatString, String glue) {
String ret = "";
boolean first = true;
for (String s : arr) {
if (!first) {
ret += glue;
} else {
first = false;
}
ret += String.format(formatString, s);
}
return ret;
}
public static Object deepCopy(Object o) {
try {
ByteArrayOutputStream baos = new ByteArrayOutputStream();