当前位置 类层次(JDK) 所有类(JDK) 所有域和方法(JDK)

类 java.rmi.server.LogStream

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

public class LogStream
extends PrintStream

LogStream 提供了一种机制用来记录系统监视员可能感兴趣的错误。


变量索引

BRIEF
SILENT
记录等级常数
VERBOSE

方法索引

getDefaultStream()
返回新建日志的当前缺省流(stream)。
getOutputStream()
返回当前流,日志的输出被发送到了其中。
log(String)
返回用给定名标识的 LogStream。
parseLevel(String)
将表示记录等级名的字符串转换为其内部整数表示。
setDefaultStream(PrintStream)
返回新建日志的缺省流。
setOutputStream(OutputStream)
返回该流,日志的输出被发送到了其中。
toString()
返回日志名的字符串表示。
write(byte[], int, int)
对字节型数组的子数组进行写操作。
write(int)
向该流中写入一字节数据。

变量

SILENT
 public static final int SILENT
记录等级常数

BRIEF
 public static final int BRIEF
VERBOSE
 public static final int VERBOSE

方法

log
 public static LogStream log(String name)
返回用给定名标识别 LogStream。 如果 "name" 标识的日志不存在, 则生成一使用缺省流的日志。

getDefaultStream
 public static synchronized PrintStream getDefaultStream()
返回新建日志的当前缺省流。

setDefaultStream
 public static synchronized void setDefaultStream(PrintStream newDefault)
返回新建日志的缺省流。

getOutputStream
 public synchronized OutputStream getOutputStream()
返回当前流,日志的输出被发送到了该流中。

setOutputStream
 public synchronized void setOutputStream(OutputStream out)
返回该流,日志的输出被发送到了该流中。

write
 public void write(int b)
向该流中写入一字节数据。如果它不是换行符,则该字节被追加到内部缓冲区尾。 如果是换行符,则当前缓冲的一行被发送到该日志的输出流中,并用正确的日志信息作为前缀。

覆盖:
write in class PrintStream
write
 public void write(byte b[],
                   int off,
                   int len)
对字节型数组的子数组进行写操作。通过写字节方法传送每个字节。

覆盖:
write in class PrintStream
toString
 public String toString()
返回日志名的字符串表示。

覆盖:
Object 中的 toString
parseLevel
 public static int parseLevel(String s)
将表示记录等级名的字符串转换为内部整数表示。


当前位置 类层次(JDK) 所有类(JDK) 所有域和方法(JDK)