Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2003, 2006 IBM Corporation and others. All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.osgi.framework.internal.protocol;
import java.net.*;
The NullURLStreamService is created when a registered URLStreamHandler service with an associated URLStreamHandlerProxy becomes unregistered. The associated URLStreamHandlerProxy must still handle all future requests for the now unregistered scheme (the JVM caches URLStreamHandlers making up impossible to "unregister" them). When requests come in for an unregistered URLStreamHandlerService, the NullURLStreamHandlerService is used in it's place.
	public URLConnection openConnection(URL uthrows IOException {
		throw new MalformedURLException();
	}
	public boolean equals(URL url1URL url2) {
		throw new IllegalStateException();
	}
	public int getDefaultPort() {
		throw new IllegalStateException();
	}
	public InetAddress getHostAddress(URL url) {
		throw new IllegalStateException();
	}
	public int hashCode(URL url) {
		throw new IllegalStateException();
	}
	public boolean hostsEqual(URL url1URL url2) {
		throw new IllegalStateException();
	}
	public boolean sameFile(URL url1URL url2) {
		throw new IllegalStateException();
	}
	public void setURL(URL uString protocolString hostint portString authorityString userInfoString fileString queryString ref) {
		throw new IllegalStateException();
	}
	public void setURL(URL uString protocolString hostint portString fileString ref) {
		throw new IllegalStateException();
	}
	public String toExternalForm(URL url) {
		throw new IllegalStateException();
	}
	public void parseURL(URLStreamHandlerSetter realHandlerURL uString specint startint limit) {
		throw new IllegalStateException();
	}
New to GrepCode? Check out our FAQ X