Skip to main content

FileConnection

2 replies [Last post]
Anonymous

Is there a way to determine how much space is available in a directory or is
it better to try to write the file and then catch the exception? I am trying
to code for several phones and need to be able to change the target to File
or RMS depending on the availability and size of the directory

Thanks

Solutions for your enterprise data

Chris Rotberg
President InfieldData,Inc
65 Enterprise

Aliso Viejo, CA 92656
chrisr@infielddata.com
www.infielddata.com
AIM:
tel:
fax:
mobile:
Skype ID:
SkypeIn #: 949-837-3728

949-583-9985
949-254-6337

Add me
to your address book... Want a signature
like this?

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
astrientlabs
Offline
Joined: 2006-09-14
Points: 0

FileConnection.availableSize() may be what you are looking for. You may want to check the java doc for JSR-75.

Chris B

totalSize()-usedSize()
----- Original Message -----
From: Chris Rotberg
To: KVM-INTEREST@JAVA.SUN.COM
Sent: Monday, June 11, 2007 6:37 PM
Subject: FileConnection

Is there a way to determine how much space is available in a directory or is it better to try to write the file and then catch the exception? I am trying to code for several phones and need to be able to change the target to File or RMS depending on the availability and size of the directory

Thanks

Solutions for your enterprise data

Chris Rotberg
President InfieldData,Inc
65 Enterprise
Aliso Viejo, CA 92656
chrisr@infielddata.com
www.infielddata.com
AIM: tel:
fax:
mobile:
Skype ID:
SkypeIn #: 949-837-3728
949-583-9985
949-254-6337

Add me to your address book... Want a signature like this?

=========================================================================== To unsubscribe, send email to listserv@java.sun.com and include in the body of the message "signoff KVM-INTEREST". For general help, send email to listserv@java.sun.com and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to listserv@java.sun.com and include in the body
of the message "signoff KVM-INTEREST". For general help, send email to
listserv@java.sun.com and include in the body of the message "help".
[att1.html]