* compatibility fixes
This commit is contained in:
parent
ba1ae98d1c
commit
c3b0f35248
|
@ -260,6 +260,10 @@ public class ScriptShellMethods {
|
||||||
return WebRequest.post(self, text.getBytes("UTF-8"), "text/plain", requestParameters);
|
return WebRequest.post(self, text.getBytes("UTF-8"), "text/plain", requestParameters);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static ByteBuffer post(URL self, byte[] postData, String contentType, Map<String, String> requestParameters) throws IOException {
|
||||||
|
return WebRequest.post(self, postData, contentType, requestParameters);
|
||||||
|
}
|
||||||
|
|
||||||
public static File saveAs(ByteBuffer self, String path) throws IOException {
|
public static File saveAs(ByteBuffer self, String path) throws IOException {
|
||||||
return saveAs(self, new File(path));
|
return saveAs(self, new File(path));
|
||||||
}
|
}
|
||||||
|
|
|
@ -81,6 +81,10 @@ public class ExpressionFormatMethods {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static String replaceAll(String self, String pattern) {
|
||||||
|
return self.replaceAll(pattern, "");
|
||||||
|
}
|
||||||
|
|
||||||
public static String removeAll(String self, String pattern) {
|
public static String removeAll(String self, String pattern) {
|
||||||
return compile(pattern, CASE_INSENSITIVE | UNICODE_CASE | MULTILINE).matcher(self).replaceAll("").trim();
|
return compile(pattern, CASE_INSENSITIVE | UNICODE_CASE | MULTILINE).matcher(self).replaceAll("").trim();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue