home *** CD-ROM | disk | FTP | other *** search
/ PC Online 1998 January / PCO0198.ISO / 1&1 / java.z / java_301 / netscape / net / URLStreamHandlerFactory.class (.txt) < prev   
Encoding:
Java Class File  |  1996-10-20  |  798 b   |  18 lines

  1. package netscape.net;
  2.  
  3. import java.net.URLStreamHandler;
  4.  
  5. public class URLStreamHandlerFactory implements java.net.URLStreamHandlerFactory {
  6.    private static native void pInit();
  7.  
  8.    public URLStreamHandler createURLStreamHandler(String protocol) {
  9.       return this.pSupportsProtocol(protocol) ? new netscape.net.URLStreamHandler() : null;
  10.    }
  11.  
  12.    private native boolean pSupportsProtocol(String var1);
  13.  
  14.    static {
  15.       pInit();
  16.    }
  17. }
  18.