java.rmi.server
Class LogStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--java.io.FilterOutputStream
              |
              +--java.io.PrintStream
                    |
                    +--java.rmi.server.LogStream

Deprecated. no replacement

public class LogStream
extends PrintStream

LogStream provides a mechanism for logging errors that are of possible interest to those monitoring a system.

Since:
JDK1.1

Field Summary
static int BRIEF
copy->  BRIEF
Deprecated. 
log level constant (brief logging).
static int SILENT
copy->  SILENT
Deprecated. 
log level constant (no logging).
static int VERBOSE
copy->  VERBOSE
Deprecated. 
log level constant (verbose logging).
 
Fields inherited from class java.io.FilterOutputStream
out
 
Method Summary
static PrintStream getDefaultStream()
copy->  LogStream.getDefaultStream()
copy->  <PrintStream var>=LogStream.getDefaultStream();
Deprecated. no replacement

Return the current default stream for new logs.
Returns:
default log stream
Since:
JDK1.1
 OutputStream getOutputStream()
copy->  .getOutputStream()
copy->  <OutputStream var>=<LogStream>.getOutputStream();
Deprecated. no replacement

Return the current stream to which output from this log is sent.
Returns:
output stream for this log
Since:
JDK1.1
static LogStream log(String name)
copy->  LogStream.log( )
copy->  <LogStream var>=LogStream.log(<String name>);
Deprecated. no replacement

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.
Parameters:
name - name identifying the desired LogStream
Returns:
log associated with given name
Since:
JDK1.1
static int parseLevel(String s)
copy->  LogStream.parseLevel( )
copy->  <int var>=LogStream.parseLevel(<String s>);
Deprecated. no replacement

Convert a string name of a logging level to its internal integer representation.
Parameters:
s - name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
Returns:
corresponding integer log level
Since:
JDK1.1
static void setDefaultStream(PrintStream newDefault)
copy->  LogStream.setDefaultStream( )
copy->  LogStream.setDefaultStream(<PrintStream newDefault>);
Deprecated. no replacement

Set the default stream for new logs.
Parameters:
newDefault - new default log stream
Since:
JDK1.1
 void setOutputStream(OutputStream out)
copy->  .setOutputStream( )
copy->  <LogStream>.setOutputStream(<OutputStream out>);
Deprecated. no replacement

Set the stream to which output from this log is sent.
Parameters:
out - new output stream for this log
Since:
JDK1.1
 String toString()
copy->  .toString()
copy->  <String var>=<LogStream>.toString();
Deprecated. no replacement

Return log name as string representation.
Overrides:
toString in class Object
Returns:
log name
Since:
JDK1.1
 void write(byte[] b, int off, int len)
copy->  .write(, , )
copy->  <LogStream>.write(<byte[] b>, <int off>, <int len>);
Deprecated. no replacement

Write a subarray of bytes. Pass each through write byte method.
Overrides:
write in class PrintStream
Since:
JDK1.1
 void write(int b)
copy->  .write( )
copy->  <LogStream>.write(<int b>);
Deprecated. no replacement

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.
Overrides:
write in class PrintStream
Since:
JDK1.1
 
Methods inherited from class java.io.PrintStream
checkError, close, flush, print, print, print, print, print, print, print, print, print, println, println, println, println, println, println, println, println, println, println, setError
 
Methods inherited from class java.io.FilterOutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait