my dog learned polymorphism*
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 OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP 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?