public class Connections extends Object
URLConnection
related utilitiesModifier and Type | Method and Description |
---|---|
static void |
close(URLConnection connection)
Closes a connection
|
static void |
closeQuietly(URLConnection connection)
Closes a connection, ignoring any exceptions if they occur
|
static Time |
getLastModified(URL url)
Gets last modified date of the given
URL |
public static Time getLastModified(URL url) throws IOException
URL
url
- null
if not availableIOException
public static void closeQuietly(URLConnection connection)
connection
- public static void close(URLConnection connection) throws IOException
connection
- IOException
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.