java.rmi.server
public class LogStream extends PrintStream
Modifier and Type | Field and Description |
---|---|
static int |
BRIEF
Deprecated.
|
static int |
SILENT
Deprecated.
|
static int |
VERBOSE
Deprecated.
|
out
Modifier and Type | Method and Description |
---|---|
static PrintStream |
getDefaultStream()
Deprecated.
|
OutputStream |
getOutputStream()
Deprecated.
|
static LogStream |
log(String name)
Deprecated.
|
static int |
parseLevel(String s)
Deprecated.
|
static void |
setDefaultStream(PrintStream s)
Deprecated.
|
void |
setOutputStream(OutputStream s)
Deprecated.
|
String |
toString()
Deprecated.
|
void |
write(byte[] buffer,
int offset,
int len)
Deprecated.
|
void |
write(int buffer)
Deprecated.
|
append, append, append, checkError, 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
public static final int SILENT
public static final int BRIEF
public static final int VERBOSE
public static PrintStream getDefaultStream()
public static void setDefaultStream(PrintStream s)
public OutputStream getOutputStream()
public void setOutputStream(OutputStream s)
public void write(int buffer)
PrintStream
write
in class PrintStream
buffer
- The byte to be writtenpublic void write(byte[] buffer, int offset, int len)
PrintStream
len
bytes from the specified array
starting at index offset
into the array.write
in class PrintStream
buffer
- The array of bytes to writeoffset
- The index into the array to start writing fromlen
- The number of bytes to writepublic String toString()
Object
System.out.println()
and such.
It is typical, but not required, to ensure that this method
never completes abruptly with a RuntimeException
.
This method will be called when performing string
concatenation with this object. If the result is
null
, string concatenation will instead
use "null"
.
The default implementation returns
getClass().getName() + "@" +
Integer.toHexString(hashCode())
.
toString
in class Object
Object.getClass()
,
Object.hashCode()
,
Class.getName()
,
Integer.toHexString(int)
public static int parseLevel(String s)