File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes URI/URN Parser anywhere? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "URI/URN Parser anywhere?" Watch "URI/URN Parser anywhere?" New topic
Author

URI/URN Parser anywhere?

Roshni Thilakhar
Greenhorn

Joined: Jun 24, 2004
Posts: 3
Does anybody know of an existing URI/URN java parser that can parse not only
the scheme but also all the parameters. For example, it must be capable of parsing the following urn:

mailto:abc@def.com?subject=subj1&body=body1

Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Are we talking about JAVA or JavaScript... two different things here
Roshni Thilakhar
Greenhorn

Joined: Jun 24, 2004
Posts: 3
Preferably a java parser
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
moving to the Java Beginner Forum then....
raj madhuram
Ranch Hand

Joined: Oct 10, 2001
Posts: 71
You should be able to use java.net.URI class to do this. It might also be fairly easy to write a regexp to do the parsing

Raj

Originally posted by shakila xavier:
Does anybody know of an existing URI/URN java parser that can parse not only
the scheme but also all the parameters. For example, it must be capable of parsing the following urn:

mailto:abc@def.com?subject=subj1&body=body1

Thanks!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URI/URN Parser anywhere?
 
Similar Threads
URI vs URL
Not utterly meaningless, but definitively not meaningful either
What is the difference between URI,URL and URN
URN,URI and URL
Problem while running JSP Custom Tag