API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.rmi.server. LogStream View Source
Author(s)
Ann Wollrath (lots of code stolen from Ken Arnold)
Since
JDK1.1
Version
1.21, 11/17/05
Serial
Hierarchy
 Object
      OutputStream
          FilterOutputStream
              PrintStream
                  LogStream
Implements
Subclasses
Description
@Deprecated
public class LogStream
  LogStream provides a mechanism for logging errors that are of possible interest to those monitoring a system.
See also:   
Constructors
@Deprecated
private LogStream (String name, OutputStream out)
  Create a new LogStream object.
Methods
Hide/Show inherited methods
public PrintStream append (char c) [Inherited From PrintStream]
  Appends the specified character to this output stream.
public PrintStream append (CharSequence csq) [Inherited From PrintStream]
  Appends the specified character sequence to this output stream.
public PrintStream append (CharSequence csq, int start, int end) [Inherited From PrintStream]
  Appends a subsequence of the specified character sequence to this output stream.
public boolean checkError () [Inherited From PrintStream]
  Flushes the stream and checks its error state.
protected void clearError () [Inherited From PrintStream]
  Clears the internal error state of this stream.
public void close () [Inherited From PrintStream]
  Closes the stream.
public void flush () [Inherited From PrintStream]
  Flushes the stream.
public PrintStream format (Locale l, String format, Object args) [Inherited From PrintStream]
  Writes a formatted string to this output stream using the specified format string and arguments.
public PrintStream format (String format, Object args) [Inherited From PrintStream]
  Writes a formatted string to this output stream using the specified format string and arguments.
@Deprecated
publicstaticsynchronized PrintStream getDefaultStream ()
  Return the current default stream for new logs.
@Deprecated
publicsynchronized OutputStream getOutputStream ()
  Return the current stream to which output from this log is sent.
@Deprecated
publicstatic LogStream log (String name)
  Return the LogStream identified by the given name.
@Deprecated
publicstatic int parseLevel (String s)
  Convert a string name of a logging level to its internal integer representation.
public void print (boolean b) [Inherited From PrintStream]
  Prints a boolean value.
public void print (char c) [Inherited From PrintStream]
  Prints a character.
public void print (char[] s) [Inherited From PrintStream]
  Prints an array of characters.
public void print (double d) [Inherited From PrintStream]
  Prints a double-precision floating-point number.
public void print (float f) [Inherited From PrintStream]
  Prints a floating-point number.
public void print (int i) [Inherited From PrintStream]
  Prints an integer.
public void print (long l) [Inherited From PrintStream]
  Prints a long integer.
public void print (Object obj) [Inherited From PrintStream]
  Prints an object.
public void print (String s) [Inherited From PrintStream]
  Prints a string.
public PrintStream printf (Locale l, String format, Object args) [Inherited From PrintStream]
  A convenience method to write a formatted string to this output stream using the specified format string and arguments.
public PrintStream printf (String format, Object args) [Inherited From PrintStream]
  A convenience method to write a formatted string to this output stream using the specified format string and arguments.
public void println () [Inherited From PrintStream]
  Terminates the current line by writing the line separator string.
public void println (boolean x) [Inherited From PrintStream]
  Prints a boolean and then terminate the line.
public void println (char x) [Inherited From PrintStream]
  Prints a character and then terminate the line.
public void println (char[] x) [Inherited From PrintStream]
  Prints an array of characters and then terminate the line.
public void println (double x) [Inherited From PrintStream]
  Prints a double and then terminate the line.
public void println (float x) [Inherited From PrintStream]
  Prints a float and then terminate the line.
public void println (int x) [Inherited From PrintStream]
  Prints an integer and then terminate the line.
public void println (long x) [Inherited From PrintStream]
  Prints a long and then terminate the line.
public void println (Object x) [Inherited From PrintStream]
  Prints an Object and then terminate the line.
public void println (String x) [Inherited From PrintStream]
  Prints a String and then terminate the line.
@Deprecated
publicstaticsynchronized void setDefaultStream (PrintStream newDefault)
  Set the default stream for new logs.
protected void setError () [Inherited From PrintStream]
  Sets the error state of the stream to true.
@Deprecated
publicsynchronized void setOutputStream (OutputStream out)
  Set the stream to which output from this log is sent.
@Deprecated
public String toString ()
  Return log name as string representation.
public void write (byte[] b) throws IOException [Inherited From FilterOutputStream]
  Writes b.length bytes to this output stream.
@Deprecated
public void write (byte[] b, int off, int len) [Overrides PrintStream]
  Write a subarray of bytes.
@Deprecated
public void write (int b) [Overrides PrintStream] [Specified in OutputStream]
  Write a byte of data to the stream.
Fields
Hide/Show inherited fields
publicfinalstatic int BRIEF = "10"
log level constant (brief logging).
protected OutputStream out [Inherited From FilterOutputStream]
The underlying output stream to be filtered.
publicfinalstatic int SILENT = "0"
log level constant (no logging).
publicfinalstatic int VERBOSE = "20"
log level constant (verbose logging).
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar