Class DataURLConnection
java.lang.Object
java.net.URLConnection
gov.usgs.util.protocolhandlers.data.DataURLConnection
URLConnection for data protocol URLs.
-
Field Summary
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getLastModified, getOutputStream, getPermission, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
-
Constructor Details
-
DataURLConnection
- Parameters:
url
- URL- Throws:
Exception
- if error occurs
-
-
Method Details
-
getContentLength
public int getContentLength()- Overrides:
getContentLength
in classURLConnection
-
getContentType
- Overrides:
getContentType
in classURLConnection
-
connect
- Specified by:
connect
in classURLConnection
- Throws:
IOException
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
- Throws:
IOException
-