Convert String or IPath type to URI

453 views
Skip to first unread message

shubhangi

unread,
Mar 3, 2008, 4:54:31 AM3/3/08
to The Pune Eclipse Developers' Group
Suppose i have path stored in String or in IPath format.
how to convert into URI type.

e.String path="E:\\test\\sample";

i want in URI type.

Keya Nema

unread,
Mar 3, 2008, 5:21:01 AM3/3/08
to eclipse-...@googlegroups.com
URIUtil.toURI ("");
URIUtil.toURI(IPath);

These are the 2 APIs available to convert a String or an IPath to URI.

Ketan Padegaonkar

unread,
Mar 3, 2008, 5:28:56 AM3/3/08
to eclipse-...@googlegroups.com

On 03-Mar-08, at 3:24 PM, shubhangi wrote:

>
> Suppose i have path stored in String or in IPath format.
> how to convert into URI type.
>
> e.String path="E:\\test\\sample";


org.eclipse.core.filesystem.EFS should answer your question.

--
Ketan Padegaonkar
I blog... therefore I am... http://ketan.padegaonkar.name
http://swtbot.org/ - a functional testing tool for SWT/Eclipse

Reply all
Reply to author
Forward
0 new messages