In https://github.com/luugiathuy/Java-Download-Manager I cannot find the variable for setting/changing a filename with my own definition, not filename in server.
In https://github.com/luugiathuy/Java-Download-Manager I cannot find the variable for setting/changing a filename with my own
Share
It does not immediately provide one. According to this code from Downloader, it uses
URL.getFileto determine the output file name:This field is used at the following particular points in
HttpDownloader:here
and here
and lastly here
Why you don’t write your own which supports a custom file name? Surely it would be an interesting exercise for you! Maybe you can write one even better.