Package gov.nasa.pds.tools.util
Class FileSizesUtil
java.lang.Object
gov.nasa.pds.tools.util.FileSizesUtil
public class FileSizesUtil extends Object
A class that calculates the filesize of a file in bytes.
-
Constructor Summary
Constructors Constructor Description FileSizesUtil()
-
Method Summary
Modifier and Type Method Description static int
getExternalFilesize(URL url)
Gets the filesize value.
-
Constructor Details
-
FileSizesUtil
public FileSizesUtil()
-
-
Method Details
-
getExternalFilesize
Gets the filesize value.- Parameters:
url
- The url to the file or resource.- Returns:
- The filesize of the given filename.
- Throws:
Exception
- If an error occurred while calculating the checksum.
-