Package cc.mallet.util
Class UriUtils
- java.lang.Object
-
- cc.mallet.util.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.
-
-
-
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)
-
-