• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
RE: Deprecated function - not clarified
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Deprecated function - not clarified


  • Subject: RE: Deprecated function - not clarified
  • From: <email@hidden>
  • Date: Tue, 9 Nov 2004 17:48:09 +0100
  • Thread-topic: Deprecated function - not clarified

The point is that you should not attempt to get the File. Indeed there may be no file in some deployment set-ups. The resource might be stored within a WAR.
 
Pierre
-----Original Message-----
From: webobjects-dev-bounces+pierre.bernard=email@hidden [mailto:webobjects-dev-bounces+pierre.bernard=email@hidden]On Behalf Of Erwin
Sent: Tuesday, November 09, 2004 5:43 PM
To: WebObjects (Group)
Subject: Deprecated function - not clarified

Resource Manager method 'pathForResourceNamed' is indcated as deprecated in all documentation
but is still used a lot in WO (read an article in Stepwise - 2004 about Aspect object)

if we should not write the following statement :
String resourcePath = (String)rm.pathForResourceNamed( filename, framework, null );

how could it be replaced using 'inputStreamForResourceNamed' to get a resourcePath ?
InputStream resourceStream = (InputStream) rm.inputStreamForResourcedNamed( filename, framework, null );
how cn I get a File object to get its path ?

thanks

Erwin


**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: RE: Getting the SQL while running from eclipse
  • Next by Date: Re: Deprecated function - not clarified
  • Previous by thread: Re: Deprecated function - not clarified
  • Next by thread: WOCheckboxMatrix & disabled binding
  • Index(es):
    • Date
    • Thread