FileDocCategorySizeDatePackage
NewFactory.javaAPI DocExample596Sun Dec 12 10:55:32 GMT 2004com.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;
    }