Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Standard Edition

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
          Deprecated. log level constant (brief logging)
static int SILENT
          Deprecated. log level constant (no logging)
static int VERBOSE
          Deprecated. log level constant (verbose logging)
 
Fields inherited from class java.io.FilterOutputStream
out
 
Method Summary
static PrintStream getDefaultStream()
          Deprecated. no replacement
 OutputStream getOutputStream()
          Deprecated. no replacement
static LogStream log(String name)
          Deprecated. no replacement
static int parseLevel(String s)
          Deprecated. no replacement
static void setDefaultStream(PrintStream newDefault)
          Deprecated. no replacement
 void setOutputStream(OutputStream out)
          Deprecated. no replacement
 String toString()
          Deprecated. no replacement
 void write(byte[] b, int off, int len)
          Deprecated. no replacement
 void write(int b)
          Deprecated. no replacement
 
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
 

Field Detail

SILENT

public static final int SILENT
Deprecated. 
log level constant (no logging)

BRIEF

public static final int BRIEF
Deprecated. 
log level constant (brief logging)

VERBOSE

public static final int VERBOSE
Deprecated. 
log level constant (verbose logging)
Method Detail

log

public static 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.
Since:
JDK1.1

getDefaultStream

public static PrintStream getDefaultStream()
Deprecated. no replacement

Return the current default stream for new logs.
Since:
JDK1.1

setDefaultStream

public static void setDefaultStream(PrintStream newDefault)
Deprecated. no replacement

Set the default stream for new logs.
Since:
JDK1.1

getOutputStream

public OutputStream getOutputStream()
Deprecated. no replacement

Return the current stream to which output from this log is sent.
Since:
JDK1.1

setOutputStream

public void setOutputStream(OutputStream out)
Deprecated. no replacement

Set the stream to which output from this log is sent.
Since:
JDK1.1

write

public void 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

write

public void 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

toString

public String toString()
Deprecated. no replacement

Return log name as string representation
Overrides:
toString in class Object
Since:
JDK1.1

parseLevel

public static int parseLevel(String s)
Deprecated. no replacement

Convert a string name of a logging level to its internal integer representation.
Since:
JDK1.1

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.