Class UriUtils


  • public class UriUtils
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      UriUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String filenameToUriString​(java.lang.String filename)  
      static java.net.URI objectToUri​(java.lang.Object obj)  
      static java.lang.String uriStringToFilename​(java.lang.String uri)
      Convert a string-representation of a URI into a string that could be a filename.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • UriUtils

        public UriUtils()
    • Method Detail

      • objectToUri

        public static java.net.URI objectToUri​(java.lang.Object obj)
      • uriStringToFilename

        public static java.lang.String uriStringToFilename​(java.lang.String uri)
        Convert a string-representation of a URI into a string that could be a filename. Do this by substituting '/' for '+', and '++' for '+'. For example, "http://www.cs.umass.edu/faculty" becomes "http:++www.cs.umass.edu+faculty".
      • filenameToUriString

        public static java.lang.String filenameToUriString​(java.lang.String filename)