import java.net.*;

public class MyStreamHandlerFactory implements URLStreamHandlerFactory {
    public URLStreamHandler createURLStreamHandler(String protocol) {
        if (protocol.equalsIgnoreCase("time"))
            return new TimeHandler();
        return null; // huh?
    }
}
