RE: Deprecated function - not clarified
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
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