Save This Page
Home » openjdk-7 » java » rmi » server » [javadoc | source]
java.rmi.server
public class: LogStream [javadoc | source]
java.lang.Object
   java.io.OutputStream
      java.io.FilterOutputStream
         java.io.PrintStream
            java.rmi.server.LogStream

All Implemented Interfaces:
    Closeable, Appendable, Flushable

Deprecated! no - replacement

LogStream provides a mechanism for logging errors that are of possible interest to those monitoring a system.
Field Summary
public static final  int SILENT    log level constant (no logging). 
public static final  int BRIEF    log level constant (brief logging). 
public static final  int VERBOSE    log level constant (verbose logging). 
Fields inherited from java.io.FilterOutputStream:
out
Method from java.rmi.server.LogStream Summary:
getDefaultStream,   getOutputStream,   log,   parseLevel,   setDefaultStream,   setOutputStream,   toString,   write,   write
Methods from java.io.PrintStream:
append,   append,   append,   checkError,   clearError,   close,   flush,   format,   format,   print,   print,   print,   print,   print,   print,   print,   print,   print,   printf,   printf,   println,   println,   println,   println,   println,   println,   println,   println,   println,   println,   setError,   write,   write
Methods from java.io.FilterOutputStream:
close,   flush,   write,   write,   write
Methods from java.io.OutputStream:
close,   flush,   write,   write,   write
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from java.rmi.server.LogStream Detail:
 public static synchronized PrintStream getDefaultStream() 
Deprecated! no - replacement

      Deprecated!
    Return the current default stream for new logs.
 public synchronized OutputStream getOutputStream() 
Deprecated! no - replacement

      Deprecated!
    Return the current stream to which output from this log is sent.
 public static LogStream log(String name) 
Deprecated! no - replacement

      Deprecated!
    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.
 public static int parseLevel(String s) 
Deprecated! no - replacement

      Deprecated!
    Convert a string name of a logging level to its internal integer representation.
 public static synchronized  void setDefaultStream(PrintStream newDefault) 
Deprecated! no - replacement

      Deprecated!
    Set the default stream for new logs.
 public synchronized  void setOutputStream(OutputStream out) 
Deprecated! no - replacement

      Deprecated!
    Set the stream to which output from this log is sent.
 public String toString() 
Deprecated! no - replacement

      Deprecated!
    Return log name as string representation.
 public  void write(int b) 
Deprecated! no - replacement

      Deprecated!
    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.
 public  void write(byte[] b,
    int off,
    int len) 
Deprecated! no - replacement

      Deprecated!
    Write a subarray of bytes. Pass each through write byte method.