de.phleisch.app.itsucks.io
Class UrlUtils

java.lang.Object
  extended by de.phleisch.app.itsucks.io.UrlUtils

public class UrlUtils
extends java.lang.Object


Constructor Summary
UrlUtils()
           
 
Method Summary
static java.lang.String getFilenameFromUrl(java.net.URL pUrl)
          Returns the filename of an URL or null if the URL ends with an slash.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UrlUtils

public UrlUtils()
Method Detail

getFilenameFromUrl

public static java.lang.String getFilenameFromUrl(java.net.URL pUrl)
Returns the filename of an URL or null if the URL ends with an slash. http://server.com/a/foo.bin -> method returns "foo.bin" http://server.com/a/ -> method returns null http://server.com -> method returns null

Parameters:
pUrl -
Returns:
The filename or null


Copyright © 2010. All Rights Reserved.