<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<!--NewPage-->
<html>
<head>
<!-- Generated by javadoc on Wed Jul 28 01:21:15 GMT 1999 -->
<title>
  Class java.rmi.server.LogStream
</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-java.rmi.server.html">This Package</a>  <a href="Package-java.rmi.server.html">Previous</a>  <a href="java.rmi.server.ObjID.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
<hr>
<h1>
  Class java.rmi.server.LogStream
</h1>
<pre>
<a href="java.lang.Object.html#_top_">java.lang.Object</a>
   |
   +----<a href="java.io.OutputStream.html#_top_">java.io.OutputStream</a>
           |
           +----<a href="java.io.FilterOutputStream.html#_top_">java.io.FilterOutputStream</a>
                   |
                   +----<a href="java.io.PrintStream.html#_top_">java.io.PrintStream</a>
                           |
                           +----java.rmi.server.LogStream
</pre>
<hr>
<dl>
  <dt> public class <b>LogStream</b>
  <dt> extends <a href="java.io.PrintStream.html#_top_">PrintStream</a>
</dl>
<code>LogStream</code> presents a mechanism for logging errors that are
 of possible interest to those monitoring the system.
<p>
<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="#BRIEF"><b>BRIEF</b></a>
  <dd> 
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#SILENT"><b>SILENT</b></a>
  <dd> constants for logging levels
  <dt> <img src="images/blue-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#VERBOSE"><b>VERBOSE</b></a>
  <dd> 
</dl>
<h2>
  <img src="images/method-index.gif" width=207 height=38 alt="Method Index">
</h2>
<dl>
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getDefaultStream()"><b>getDefaultStream</b></a>()
  <dd>  Return the current default stream for new logs.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#getOutputStream()"><b>getOutputStream</b></a>()
  <dd>  Return the current stream to which output from this log is sent.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#log(java.lang.String)"><b>log</b></a>(String)
  <dd>  Return the LogStream identified by the given name.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#parseLevel(java.lang.String)"><b>parseLevel</b></a>(String)
  <dd>  Convert a string name of a logging level to its internal
 integer representation.
  <dt> <img src="images/green-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setDefaultStream(java.io.PrintStream)"><b>setDefaultStream</b></a>(PrintStream)
  <dd>  Set the default stream for new logs.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#setOutputStream(java.io.OutputStream)"><b>setOutputStream</b></a>(OutputStream)
  <dd>  Set the stream to which output from this log is sent.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#toString()"><b>toString</b></a>()
  <dd>  Return log name as string representation

  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(byte[], int, int)"><b>write</b></a>(byte[], int, int)
  <dd>  Write a subarray of bytes.
  <dt> <img src="images/red-ball-small.gif" width=6 height=6 alt=" o ">
	<a href="#write(int)"><b>write</b></a>(int)
  <dd>  Write a byte of data to the stream.
</dl>
<a name="variables"></a>
<h2>
  <img src="images/variables.gif" width=153 height=38 alt="Variables">
</h2>
<a name="SILENT"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>SILENT</b>
<pre>
 public static final int SILENT
</pre>
<dl>
  <dd> constants for logging levels<p>
</dl>
<a name="BRIEF"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>BRIEF</b>
<pre>
 public static final int BRIEF
</pre>
<a name="VERBOSE"><img src="images/blue-ball.gif" width=12 height=12 alt=" o "></a>
<b>VERBOSE</b>
<pre>
 public static final int VERBOSE
</pre>
<a name="methods"></a>
<h2>
  <img src="images/methods.gif" width=151 height=38 alt="Methods">
</h2>
<a name="log(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="log"><b>log</b></a>
<pre>
 public static <a href="#_top_">LogStream</a> log(<a href="java.lang.String.html#_top_">String</a> name)
</pre>
<dl>
  <dd> Return the LogStream identified by the given name.  If
 a log corresponding to "name" does not exist, a log using
 the default stream is created.
<p>
</dl>
<a name="getDefaultStream()"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getDefaultStream"><b>getDefaultStream</b></a>
<pre>
 public static synchronized <a href="java.io.PrintStream.html#_top_">PrintStream</a> getDefaultStream()
</pre>
<dl>
  <dd> Return the current default stream for new logs.
<p>
</dl>
<a name="setDefaultStream(java.io.PrintStream)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setDefaultStream"><b>setDefaultStream</b></a>
<pre>
 public static synchronized void setDefaultStream(<a href="java.io.PrintStream.html#_top_">PrintStream</a> newDefault)
</pre>
<dl>
  <dd> Set the default stream for new logs.
<p>
</dl>
<a name="getOutputStream()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="getOutputStream"><b>getOutputStream</b></a>
<pre>
 public synchronized <a href="java.io.OutputStream.html#_top_">OutputStream</a> getOutputStream()
</pre>
<dl>
  <dd> Return the current stream to which output from this log is sent.
<p>
</dl>
<a name="setOutputStream(java.io.OutputStream)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="setOutputStream"><b>setOutputStream</b></a>
<pre>
 public synchronized void setOutputStream(<a href="java.io.OutputStream.html#_top_">OutputStream</a> out)
</pre>
<dl>
  <dd> Set the stream to which output from this log is sent.
<p>
</dl>
<a name="write(int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(int b)
</pre>
<dl>
  <dd> Write a byte of data to the stream.  If it is not a newline, then
 the byte is appended to the internal buffer.  If it is a newline,
 then the currently buffered line is sent to the log's output
 stream, prefixed with the appropriate logging information.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.PrintStream.html#write(int)">write</a> in class <a href="java.io.PrintStream.html#_top_">PrintStream</a>
  </dl></dd>
</dl>
<a name="write(byte[], int, int)"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="write"><b>write</b></a>
<pre>
 public void write(byte b[],
                   int off,
                   int len)
</pre>
<dl>
  <dd> Write a subarray of bytes.  Pass each through write byte method.
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.io.PrintStream.html#write(byte[], int, int)">write</a> in class <a href="java.io.PrintStream.html#_top_">PrintStream</a>
  </dl></dd>
</dl>
<a name="toString()"><img src="images/red-ball.gif" width=12 height=12 alt=" o "></a>
<a name="toString"><b>toString</b></a>
<pre>
 public <a href="java.lang.String.html#_top_">String</a> toString()
</pre>
<dl>
  <dd> Return log name as string representation
<p>
  <dd><dl>
    <dt> <b>Overrides:</b>
    <dd> <a href="java.lang.Object.html#toString()">toString</a> in class <a href="java.lang.Object.html#_top_">Object</a>
  </dl></dd>
</dl>
<a name="parseLevel(java.lang.String)"><img src="images/green-ball.gif" width=12 height=12 alt=" o "></a>
<a name="parseLevel"><b>parseLevel</b></a>
<pre>
 public static int parseLevel(<a href="java.lang.String.html#_top_">String</a> s)
</pre>
<dl>
  <dd> Convert a string name of a logging level to its internal
 integer representation.
<p>
</dl>
<hr>
<pre>
<a href="packages.html">All Packages</a>  <a href="tree.html">Class Hierarchy</a>  <a href="Package-java.rmi.server.html">This Package</a>  <a href="Package-java.rmi.server.html">Previous</a>  <a href="java.rmi.server.ObjID.html#_top_">Next</a>  <a href="AllNames.html">Index</a></pre>
</body>
</html>
