Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright (c) 2008, 2010 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 Contributors: IBM Corporation - initial API and implementation /
package org.eclipse.osgi.framework.internal.protocol;
	public URLStreamHandlerFactoryProxyFor15(String protocolServiceReference referenceBundleContext context) {
	protected URLConnection openConnection(URL uProxy pthrows IOException {
		try {
			Method openConn = .getClass().getMethod("openConnection"new Class[] {URL.classProxy.class}); //$NON-NLS-1$
			return (URLConnectionopenConn.invoke(new Object[] {up});
catch (InvocationTargetException e) {
			if (e.getTargetException() instanceof IOException)
catch (Exception e) {
			// expected on JRE < 1.5
New to GrepCode? Check out our FAQ X