You've already forked soapClient
Added a new getSize method
This commit is contained in:
@ -49,6 +49,19 @@ public class fileProcessor {
|
||||
return false;
|
||||
}
|
||||
|
||||
public static long getSize(String myFile)
|
||||
{
|
||||
try
|
||||
{
|
||||
File varFile = new File (myFile);
|
||||
return varFile.length();
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public static String replaceInFile(String myFile, Map hashMap) {
|
||||
File thisFile = new File(myFile);
|
||||
if (!thisFile.exists()) {
|
||||
|
Reference in New Issue
Block a user