Class FileSizesUtil


  • public class FileSizesUtil
    extends Object
    A class that calculates the filesize of a file in bytes.
    • Constructor Detail

      • FileSizesUtil

        public FileSizesUtil()
    • Method Detail

      • getExternalFilesize

        public static long getExternalFilesize​(URL url)
                                        throws Exception
        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.