|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.wicket.util.io.Connections
public class Connections
URLConnection
related utilities
Method Summary | |
---|---|
static void |
close(java.net.URLConnection connection)
Closes a connection |
static void |
closeQuietly(java.net.URLConnection connection)
Closes a connection, ignoring any exceptions if they occur |
static java.io.File |
findFile(java.net.URL url)
Tries to find a file on the harddisk that the url points to |
static long |
getLastModified(java.net.URL url)
Gets last modified date of the given URL |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static long getLastModified(java.net.URL url) throws java.io.IOException
URL
url
-
java.io.IOException
public static java.io.File findFile(java.net.URL url) throws java.lang.Exception
url
-
java.lang.Exception
- if file could not be locatedpublic static void closeQuietly(java.net.URLConnection connection)
connection
- public static void close(java.net.URLConnection connection) throws java.io.IOException
connection
-
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |