Class Scanner
java.lang.Object
|
+----java.awt.Component
|
+----java.awt.Container
|
+----java.awt.Panel
|
+----java.applet.Applet
|
+----Scanner
- public class Scanner
- extends Applet
- implements Runnable
-
Scanner()
-
-
clearList()
- clearList() is used to clear the contents of the lists and vectors of HREFs and SRCs
-
handleEvent(Event)
- handleEvent(Event) is invoked when an Event is generated.
Deprecated.
-
init()
- init() is invoked when the applet is initialized
-
paint(Graphics)
- paint(Graphics) is invoked when repainting the applet
-
parse(String)
- parse(String) checks the parameters content type and decides which action should be performed
-
parseAUDIO()
- parseAUDIO() starts a new thread that plays a soundfile
-
parseHTML()
- parseHTML() parses the content of a html document for HREFs and SRCs
-
parseHTML(String, String)
- parseHTML(String, String) parses a string depending on a delimiter
-
parseIMAGE(String)
- parseIMAGE() fetches an image and shows the image in a frame
-
parseURL(String, String)
- parseURL(String, String) parses the rest of a string depending on a delimiter
-
refreshList()
- refreshList() is used to fill the contents of the lists and vectors with HREFs and SRCs
-
run()
- run() is invoked when the applet starts
-
start()
- start() is invoked when the applet starts
-
stop()
- stop() is invoked when the applet stops
-
update(Graphics)
- update(Graphics) is invoked when repainting the applet
Scanner
public Scanner()
init
public void init()
- init() is invoked when the applet is initialized
- Overrides:
- init in class Applet
start
public void start()
- start() is invoked when the applet starts
- Overrides:
- start in class Applet
stop
public void stop()
- stop() is invoked when the applet stops
- Overrides:
- stop in class Applet
run
public void run()
- run() is invoked when the applet starts
handleEvent
public boolean handleEvent(Event e)
- Note: handleEvent() is deprecated.
handleEvent() is replaced by actionPerformed() in Java 1.1
- handleEvent(Event) is invoked when an Event is generated. This method is deprecated in Java 1.1 and has been replaced by actionPerformed()
- Parameters:
- e - the Event
- Returns:
- true if handled
- Overrides:
- handleEvent in class Component
parse
public void parse(String string)
- parse(String) checks the parameters content type and decides which action should be performed
- Parameters:
- string - the string that is about to be parsed
parseAUDIO
public void parseAUDIO()
- parseAUDIO() starts a new thread that plays a soundfile
parseIMAGE
public void parseIMAGE(String type)
- parseIMAGE() fetches an image and shows the image in a frame
- Parameters:
- type - the image type
parseHTML
public void parseHTML()
- parseHTML() parses the content of a html document for HREFs and SRCs
parseHTML
public void parseHTML(String delimiter,
String string)
- parseHTML(String, String) parses a string depending on a delimiter
- Parameters:
- delimiter - the delimiter "HREF=" or "SRC="
- string - the string to be delimited
parseURL
public void parseURL(String delimiter,
String string)
- parseURL(String, String) parses the rest of a string depending on a delimiter
- Parameters:
- delimiter - the delimiter "HREF=" or "SRC="
- string - the string to be delimited
paint
public void paint(Graphics g)
- paint(Graphics) is invoked when repainting the applet
- Parameters:
- g - the Graphics object
- Overrides:
- paint in class Container
update
public void update(Graphics g)
- update(Graphics) is invoked when repainting the applet
- Parameters:
- g - the Graphics object
- Overrides:
- update in class Component
clearList
public void clearList()
- clearList() is used to clear the contents of the lists and vectors of HREFs and SRCs
refreshList
public void refreshList()
- refreshList() is used to fill the contents of the lists and vectors with HREFs and SRCs