FileDocCategorySizeDatePackage
Handler.javaAPI DocExample724Mon May 01 14:41:36 BST 2000learningjava.protocolhandlers.crypt

Handler

public class Handler extends URLStreamHandler

Fields Summary
Constructors Summary
Methods Summary
protected java.net.URLConnectionopenConnection(java.net.URL url)

        String crypType = url.getProtocol(  ).substring(6);
        return new CryptURLConnection( url, crypType );
    
protected voidparseURL(java.net.URL url, java.lang.String spec, int start, int end)

        int slash = spec.indexOf('/");
        String crypType = spec.substring(start, slash-1);
        super.parseURL(url, spec, slash, end);
        setURL( url, "crypt:"+crypType, url.getHost(  ),
            url.getPort(), url.getFile(), url.getRef(  ) );