Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URI/URN Parser anywhere?

 
Roshni Thilakhar
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are we talking about JAVA or JavaScript... two different things here
 
Roshni Thilakhar
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Preferably a java parser
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
moving to the Java Beginner Forum then....
 
raj madhuram
Ranch Hand
Posts: 71
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic