nsIFileURL

IID:d26b2e2e-1dd1-11b2-88f3-8545a7ba7949
Inherits From:nsIURL
Status:FROZEN

nsIFileURL provides access to the underlying nsIFile object corresponding to an URL. The URL scheme need not be file:, since other local protocols may map URLs to files (e.g., resource:).

An object of this interface should be created in the following way:

ioService.newFileURI(file);

Properties

nsIFile file

Get/Set nsIFile corresponding to this URL.

- Getter returns a reference to an immutable object. Callers must clone before attempting to modify the returned nsIFile object. NOTE: this constraint might not be enforced at runtime, so beware!!

- Setter clones the nsIFile object (allowing the caller to safely modify the nsIFile object after setting it on this interface).


References

This interface is the type of the following properties:

nsIFilePicker.fileURL

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com