Class DataUrlConnection


  • public class DataUrlConnection
    extends URLConnection
    Decodes the base64 data and provides an appropriate InputStream.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static String DATA_PREFIX  
      • Fields inherited from class URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected DataUrlConnection​(URL url)
      Must be overridden.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect()  
      InputStream getInputStream()  
      • 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
      • Methods inherited from class Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • 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:
        connect in class URLConnection
        Throws:
        IOException
      • getInputStream

        public InputStream getInputStream()
        Overrides:
        getInputStream in class URLConnection