Class DataConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.openstreetmap.josm.io.protocols.data.DataConnection
-
public class DataConnection extends java.net.URLConnection
Connection for "data:" protocol allowing to read inlined base64 images.See StackOverflow.
- Since:
- 10931
-
-
Constructor Summary
Constructors Constructor Description DataConnection(java.net.URL u)Constructs a newDataConnection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()java.io.InputStreamgetInputStream()-
Methods inherited from class java.net.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
-
-
-
-
Constructor Detail
-
DataConnection
public DataConnection(java.net.URL u)
Constructs a newDataConnection.- Parameters:
u- data url
-
-
Method Detail
-
connect
public void connect() throws java.io.IOException
- Specified by:
connectin classjava.net.URLConnection- Throws:
java.io.IOException
-
getInputStream
public java.io.InputStream getInputStream() throws java.io.IOException
- Overrides:
getInputStreamin classjava.net.URLConnection- Throws:
java.io.IOException
-
-