The Source for Java Technology Collaboration

Home » java.net Forums » Mobile & Embedded » Blu-ray Disc Java

Thread: How to determine amount of free space on Blu-ray Player hard disk

Welcome, Guest Help
Login Login
Guest Settings Guest Settings
Reply to this Thread Reply to this Thread Search Forum Search Forum Back to Thread List Back to Thread List

Permlink Replies: 2 - Last Post: Dec 5, 2008 4:33 AM by: ljubisap Threads: [ Previous | Next ]
ljubisap

Posts: 4
How to determine amount of free space on Blu-ray Player hard disk
Posted: Dec 5, 2008 1:02 AM
  Click to reply to this thread Reply

Hello,

I'm looking a way to find out how much free space left on Blu-ray player local storage device. This API is implemented in Java 6 and I have to use 1.3 so that is the problem.
JDK 6 supports this:

File file = new File("/home/ljubisap");

//Returns the number of unallocated bytes on the disc where this folder resides
System.out.println(file.getFreeSpace());

Is there some way (besides JNI) to determine this info. For example, PS3 gives you this info but I'll need this info in order to determine is there enough space on local storage do download video content from the Internet.

Any comments are more then welcome.

Regards,
Ljubisa

bjoern_minkmar

Posts: 25
Re: How to determine amount of free space on Blu-ray Player hard disk
Posted: Dec 5, 2008 1:12 AM   in response to: ljubisap
  Click to reply to this thread Reply

Hi Ljubisa,

take a look at the org.bluray.storage.StorageManager class.
It can be used to retrieve information about BUDA and ADA, including total space and free space available.

Cheers,
Björn

ljubisap

Posts: 4
Re: How to determine amount of free space on Blu-ray Player hard disk
Posted: Dec 5, 2008 4:33 AM   in response to: bjoern_minkmar
  Click to reply to this thread Reply

Hello Björn,

Thank you very much, that is exactly what I was looking for.

Regards,
Ljubisa




 XML java.net RSS