1 11 package org.eclipse.help.internal.base; 12 13 import java.io.IOException ; 14 import java.io.InputStream ; 15 import java.net.URL ; 16 17 import org.eclipse.help.internal.HelpPlugin.IHelpProvider; 18 import org.eclipse.help.internal.protocols.HelpURLStreamHandler; 19 20 25 public class HelpProvider implements IHelpProvider { 26 27 30 public InputStream getHelpContent(String href, String locale) { 31 try { 32 URL helpURL = new URL ("help", null, -1, href + "?lang=" + locale, HelpURLStreamHandler.getDefault()); return helpURL.openStream(); 35 } catch (IOException ioe) { 36 return null; 37 } 38 } 39 } 40 | Popular Tags |