FileDocCategorySizeDatePackage
NewFactory.javaAPI DocExample601Sat Sep 09 20:54:00 BST 2000com.macfaq.net.www.protocol

NewFactory

public class NewFactory extends Object implements URLStreamHandlerFactory

Fields Summary
Constructors Summary
Methods Summary
public java.net.URLStreamHandlercreateURLStreamHandler(java.lang.String protocol)

  
    if (protocol.equalsIgnoreCase("finger")) {
      return new com.macfaq.net.www.protocol.finger.Handler();
    }
    else if (protocol.equalsIgnoreCase("chargen")) {
      return new com.macfaq.net.www.protocol.chargen.Handler();
    }
    else if (protocol.equalsIgnoreCase("daytime")) {
      return new com.macfaq.net.www.protocol.daytime.Handler();
    }
    else {
      return null;
    }