package lt.ktu.gmj;

// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.geocities.com/kpdus/jad.html
// Decompiler options: packimports(3) space 
// Source File Name:   HostNameRetriever.java

//import java.applet.Applet;
//import java.net.URL;
import javax.swing.JApplet;

public class HostNameRetriever
{

    public HostNameRetriever()
    {
    }

    public static JApplet getApplet()
    {
        return gApplet;
    }

    public static String getCodeBase()
    {
        if (getApplet() != null)
            gCodeBase = getApplet().getCodeBase().toString();
        return gCodeBase;
    }

    public static void setApplet(JApplet applet)
    {
        gApplet = applet;
    }

    static JApplet gApplet = null;
    static String gCodeBase = new String();

}
