Jump to content

Recommended Posts

Posted

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

Posted

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).

Posted

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.