* compatibility fixes

This commit is contained in:
Reinhard Pointner 2014-04-19 05:55:23 +00:00
parent ba1ae98d1c
commit c3b0f35248
2 changed files with 8 additions and 0 deletions

View File

@ -260,6 +260,10 @@ public class ScriptShellMethods {
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 {
return saveAs(self, new File(path));
}

View File

@ -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) {
return compile(pattern, CASE_INSENSITIVE | UNICODE_CASE | MULTILINE).matcher(self).replaceAll("").trim();
}