Need Help: Java SE Tips - How to create a download manager in Java
Hello, I have implemented the java download manager exampled in this site. With some modifications I have enabled it with Webstart and an option to load multiple files at once via the JNLP file.
Given all that, it's still essentially the same application. My problem is that if I pause and restart some downloads, the downloads will sometimes break. MOST often, if the last or 3rd file in the list gets paused, it will break that file, regardless of whether or not any other file was paused. I have tested it also with about 9 files, pausing several of them, and none broke. Also several pauses/restarts on the same file seem to make it break at least sometimes. I was testing with .pdf files of various sizes.
Hopefully someone with knowledge of this application can swing by and let me know what's going on here. Was the application not designed with multiple concurrent downloads in mind? If not, how would I alter the code to make that happen?
I've tried changing the code so that instead of killing the thread that holds the download it merely makes it wait in a section of the while loop until the status goes back to download from pause. Didn't really change anything.
the link to the original code is in the trackback
Thanks in advance to anyone who might know something!
Re: Need Help: Java SE Tips - How to create a download manager in Java
once send me code , i will checkit
Re: Java SE Tips - How to create a download manager in Java
No you won't, this thread is 5 years old.