This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
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 Java 8 in Action this week in the Java 8 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
Not utterly meaningless, but definitively not meaningful either
URI vs URL
URN,URI and URL
Problem while running JSP Custom Tag
What is the difference between URI,URL and URN