Package org.geotools.data.util
Class DataUrlConnection
- Object
-
- URLConnection
-
- DataUrlConnection
-
public class DataUrlConnection extends URLConnection
Decodes the base64 data and provides an appropriate InputStream.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDATA_PREFIX-
Fields inherited from class URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDataUrlConnection(URL url)Must be overridden.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()InputStreamgetInputStream()-
Methods inherited from class URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContent, getContentEncoding, getContentLength, getContentLengthLong, getContentType, 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
-
-
-
-
Field Detail
-
DATA_PREFIX
public static final String DATA_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DataUrlConnection
protected DataUrlConnection(URL url)
Must be overridden.- Parameters:
url- the data url
-
-
Method Detail
-
connect
public void connect() throws IOException- Specified by:
connectin classURLConnection- Throws:
IOException
-
getInputStream
public InputStream getInputStream()
- Overrides:
getInputStreamin classURLConnection
-
-