FileDocCategorySizeDatePackage
URLDecodingImageSource.javaAPI DocAndroid 1.5 API2378Wed May 06 22:41:54 BST 2009org.apache.harmony.awt.gl.image

URLDecodingImageSource

public class URLDecodingImageSource extends DecodingImageSource
author
Igor V. Stolyarov
version
$Revision$

Fields Summary
URL
url
Constructors Summary
public URLDecodingImageSource(URL url)

        SecurityManager security = System.getSecurityManager();
        if (security != null) {
            security.checkConnect(url.getHost(), url.getPort());
            try {
                Permission p = url.openConnection().getPermission();
                security.checkPermission(p);
            } catch (IOException e) {
            }
        }
        this.url = url;
    
Methods Summary
protected booleancheckConnection()

        SecurityManager security = System.getSecurityManager();
        if (security != null) {
            try {
                security.checkConnect(url.getHost(), url.getPort());
                return true;
            } catch (SecurityException e) {
                return false;
            }
        }
        return true;
    
protected java.io.InputStreamgetInputStream()

        try{
            URLConnection uc = url.openConnection();
            // BEGIN android-modified
            return new BufferedInputStream(uc.getInputStream(), 8192);
            // END android-modified
        }catch(IOException e){
            return null;
        }