cc.mallet.util
Class UriUtils

java.lang.Object
  extended by cc.mallet.util.UriUtils

public class UriUtils
extends java.lang.Object


Constructor Summary
UriUtils()
           
 
Method Summary
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)