mootcan.MooParser.html
mootcan-0.1.17/docs/mootcan.MooParser.html · 8.4 KB
From the archive mootcan-0.1.17.tar.gz
Download the archive « Back to the archive contents
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Thu Dec 02 07:37:32 GMT+03:30 1999 -->
<title>
Class mootcan.MooParser
</title>
</head>
<body>
<a name="_top_"></a>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-mootcan.html">This Package</a> <a href="Package-mootcan.html">Previous</a> <a href="Package-mootcan.html">Next</a> <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
Class mootcan.MooParser
</h1>
<pre>
java.lang.Object
|
+----java.lang.Thread
|
+----mootcan.MooParser
</pre>
<hr>
<dl>
<dt> public class <b>MooParser</b>
<dt> extends Thread
</dl>
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.
<p>
<dl>
<dt> <b>Author:</b>
<dd> Sindre Sørensen
Changed target output in surfnTurf() to "web_frame" which is the new default in
enCore 2.0. Jan Rune
</dl>
<hr>
<a name="index"></a>
<h2>
<img src="images/variable-index.gif" width=207 height=38 alt="Variable Index">
</h2>
<dl>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#bell"><b>bell</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#context"><b>context</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#cr"><b>cr</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#in"><b>in</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#maxUrlSpread"><b>maxUrlSpread</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#out"><b>out</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#parent"><b>parent</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#sayPrefix"><b>sayPrefix</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#socket"><b>socket</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#space"><b>space</b></a>
<dd>
<dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#tab"><b>tab</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#uncompletedURL"><b>uncompletedURL</b></a>
<dd>
<dt> <img src="images/magenta-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#urlSpread"><b>urlSpread</b></a>
<dd>
</dl>
<h2>
<img src="images/constructor-index.gif" width=275 height=38 alt="Constructor Index">
</h2>
<dl>
<dt> <img src="images/yellow-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#MooParser(java.io.InputStream, java.io.OutputStream, java.net.Socket, java.applet.Applet, java.lang.String)"><b>MooParser</b></a>(InputStream, OutputStream, Socket, Applet, String)
<dd>
</dl>
<h2>
<img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#ansiBell(java.lang.String)"><b>ansiBell</b></a>(String)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#removeAll(java.lang.String, int)"><b>removeAll</b></a>(String, int)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#run()"><b>run</b></a>()
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#showURL(java.lang.String)"><b>showURL</b></a>(String)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#surfnTurf(java.lang.String)"><b>surfnTurf</b></a>(String)
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#swallowLogin()"><b>swallowLogin</b></a>()
<dd>
<dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
<a href="#userSays(java.lang.String)"><b>userSays</b></a>(String)
<dd>
</dl>
<a name="variables"></a>
<h2>
<img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="in"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>in</b>
<pre>
private DataInputStream in
</pre>
<a name="out"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>out</b>
<pre>
private DataOutputStream out
</pre>
<a name="context"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>context</b>
<pre>
private AppletContext context
</pre>
<a name="socket"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>socket</b>
<pre>
private Socket socket
</pre>
<a name="parent"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>parent</b>
<pre>
private Applet parent
</pre>
<a name="urlSpread"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>urlSpread</b>
<pre>
private int urlSpread
</pre>
<a name="maxUrlSpread"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>maxUrlSpread</b>
<pre>
private static int maxUrlSpread
</pre>
<a name="uncompletedURL"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>uncompletedURL</b>
<pre>
private String uncompletedURL
</pre>
<a name="sayPrefix"><img src="images/magenta-ball.gif" width=12 height=12 alt=" o "></a>
<b>sayPrefix</b>
<pre>
private String sayPrefix
</pre>
<a name="bell"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>bell</b>
<pre>
static final int bell
</pre>
<a name="tab"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>tab</b>
<pre>
static final int tab
</pre>
<a name="cr"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>cr</b>
<pre>
static final int cr
</pre>
<a name="space"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>space</b>
<pre>
static final int space
</pre>
<a name="constructors"></a>
<h2>
<img src="images/constructors.gif" width=231 height=38 alt="Constructors">
</h2>
<a name="MooParser"></a>
<a name="MooParser(java.io.InputStream, java.io.OutputStream, java.net.Socket, java.applet.Applet, java.lang.String)"><img src="images/yellow-ball.gif" width=12 height=12 alt=" o "></a>
<b>MooParser</b>
<pre>
MooParser(InputStream inputStream,
OutputStream outputStream,
Socket socket,
Applet parent,
String sayPrefix)
</pre>
<a name="methods"></a>
<h2>
<img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="run()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="run"><b>run</b></a>
<pre>
public void run()
</pre>
<dl>
<dd><dl>
<dt> <b>Overrides:</b>
<dd> <a href="java.lang.Thread.html#run()">run</a> in class Thread
</dl></dd>
</dl>
<a name="userSays(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="userSays"><b>userSays</b></a>
<pre>
private String userSays(String s)
</pre>
<a name="showURL(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="showURL"><b>showURL</b></a>
<pre>
private void showURL(String s)
</pre>
<a name="surfnTurf(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="surfnTurf"><b>surfnTurf</b></a>
<pre>
private String surfnTurf(String s)
</pre>
<a name="removeAll(java.lang.String, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="removeAll"><b>removeAll</b></a>
<pre>
private String removeAll(String s,
int ch)
</pre>
<dl>
<dd><dl>
<dt> <b>Parameters:</b>
<dd> ch - what to remove from the String
</dl></dd>
</dl>
<a name="ansiBell(java.lang.String)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="ansiBell"><b>ansiBell</b></a>
<pre>
private String ansiBell(String s)
</pre>
<a name="swallowLogin()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="swallowLogin"><b>swallowLogin</b></a>
<pre>
public void swallowLogin()
</pre>
<hr>
<pre>
<a href="packages.html">All Packages</a> <a href="tree.html">Class Hierarchy</a> <a href="Package-mootcan.html">This Package</a> <a href="Package-mootcan.html">Previous</a> <a href="Package-mootcan.html">Next</a> <a href="AllNames.html">Index</a></pre>
</body>
</html>