albertlee Posted October 9, 2005 Posted October 9, 2005 I am just trying to see if I am able to make a download manager along with practicing my programming skill,, ok below are the questions: 1) can you control how much bandwidth your program is uploading/downloading a file? what is the related class for this in API? 2) can the program know how big is the file during a download? what is the related class in API? 3) can the program monitor how much bandwidth is a downloading/uploading transaction? what is the related class in API? 4) how is bandwidth related to java's definition of data stream??? thanks alot for helping me... cheers
Aeternus Posted October 9, 2005 Posted October 9, 2005 Not sure if there are any specifics API's but there could be. I think you can simply do it by keeping track of how much data you are sending and watching the timestamps etc, sleeping for a certain amount of time to keep the datarate below a certain threshold (as you send X bytes and read X bytes with read() etc).
albertlee Posted October 9, 2005 Author Posted October 9, 2005 thanks Aeternus... however, I really want to ask this question at: forum.java.sun.com but, that site seems to have a little problem (for me) to log in... would you or any one of you click on the login hyperlink on the left of that forum and check is there the same problem that occurs on mine as well? the problem is that it says "request time out" plz help thanks alot
albertlee Posted October 9, 2005 Author Posted October 9, 2005 please, can any one do me this favor from my last post?? thx
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now