All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class mootcan.MooParser

java.lang.Object
   |
   +----java.lang.Thread
           |
           +----mootcan.MooParser

public class MooParser
extends Thread
reads lines from an InputStream, and passes them on to an OutputStream. in addition we will search for special messages from MOO to client. (Surf'n Turf - style URLs / MCP etc.

Author:
Sindre Sørensen Changed target output in surfnTurf() to "web_frame" which is the new default in enCore 2.0. Jan Rune

Variable Index

 o bell
 o context
 o cr
 o in
 o maxUrlSpread
 o out
 o parent
 o sayPrefix
 o socket
 o space
 o tab
 o uncompletedURL
 o urlSpread

Constructor Index

 o MooParser(InputStream, OutputStream, Socket, Applet, String)

Method Index

 o ansiBell(String)
 o removeAll(String, int)
 o run()
 o showURL(String)
 o surfnTurf(String)
 o swallowLogin()
 o userSays(String)

Variables

 o in
 private DataInputStream in
 o out
 private DataOutputStream out
 o context
 private AppletContext context
 o socket
 private Socket socket
 o parent
 private Applet parent
 o urlSpread
 private int urlSpread
 o maxUrlSpread
 private static int maxUrlSpread
 o uncompletedURL
 private String uncompletedURL
 o sayPrefix
 private String sayPrefix
 o bell
 static final int bell
 o tab
 static final int tab
 o cr
 static final int cr
 o space
 static final int space

Constructors

 o MooParser
 MooParser(InputStream inputStream,
           OutputStream outputStream,
           Socket socket,
           Applet parent,
           String sayPrefix)

Methods

 o run
 public void run()
Overrides:
run in class Thread
 o userSays
 private String userSays(String s)
 o showURL
 private void showURL(String s)
 o surfnTurf
 private String surfnTurf(String s)
 o removeAll
 private String removeAll(String s,
                          int ch)
Parameters:
ch - what to remove from the String
 o ansiBell
 private String ansiBell(String s)
 o swallowLogin
 public void swallowLogin()

All Packages  Class Hierarchy  This Package  Previous  Next  Index