Class AppletTag

java.lang.Object
   |
   +----AppletTag

public class AppletTag
extends Object
This class is stolen from Kaffe's library to stisfy the needs of appletviewer stolen from Kaffe.


Variable Index

 o appletSize
 o archive
 o code
 o codebase
 o codebaseURL
 o name
 o paramDict

Constructor Index

 o AppletTag(StreamTokenizer)
 o AppletTag(String, String, String, String, Hashtable, Dimension)

Method Index

 o computeCodeBaseURL(URL)
given a documentbase and the current (parsed) value of codebase --- if one was given --- compute the full url for codebase as retrieved by getCodebaseURL()
 o getAppletSize()
 o getArchiveTag()
 o getCodebaseTag()
 o getCodebaseURL()
 o getCodeTag()
 o getName()
 o getParameters()
 o parseForApplets(InputStream)
parse a given stream for tags and construct an array of all tags found.
 o parseParam(StreamTokenizer)
 o setAppletHeight(int)
 o setAppletWidth(int)
 o toString()

Variables

 o paramDict
 private Hashtable paramDict
 o codebase
 private String codebase
 o codebaseURL
 private URL codebaseURL
 o archive
 private String archive
 o code
 private String code
 o name
 private String name
 o appletSize
 private Dimension appletSize

Constructors

 o AppletTag
 public AppletTag(String code,
                  String codebase,
                  String archive,
                  String name,
                  Hashtable paramDict,
                  Dimension appletSize)
 o AppletTag
 public AppletTag(StreamTokenizer st) throws IOException

Methods

 o getParameters
 public Hashtable getParameters()
 o getAppletSize
 public Dimension getAppletSize()
 o setAppletWidth
 public void setAppletWidth(int width)
 o setAppletHeight
 public void setAppletHeight(int height)
 o getName
 public String getName()
 o getCodeTag
 public String getCodeTag()
 o getCodebaseTag
 public String getCodebaseTag()
 o getCodebaseURL
 public URL getCodebaseURL()
 o getArchiveTag
 public String getArchiveTag()
 o toString
 public String toString()
Overrides:
toString in class Object
 o computeCodeBaseURL
 public void computeCodeBaseURL(URL documentBase) throws MalformedURLException
given a documentbase and the current (parsed) value of codebase --- if one was given --- compute the full url for codebase as retrieved by getCodebaseURL()

 o parseParam
 void parseParam(StreamTokenizer st) throws IOException
 o parseForApplets
 public static AppletTag[] parseForApplets(InputStream is) throws IOException
parse a given stream for tags and construct an array of all tags found. Closes stream after parsing.