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, setErrorwritepublic 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)
PrintStreamwrite in class PrintStreambuffer - The byte to be writtenpublic void write(byte[] buffer, int offset, int len)
PrintStreamlen bytes from the specified array
starting at index offset into the array.write in class PrintStreambuffer - The array of bytes to writeoffset - The index into the array to start writing fromlen - The number of bytes to writepublic String toString()
ObjectSystem.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 ObjectObject.getClass(),
Object.hashCode(),
Class.getName(),
Integer.toHexString(int)public static int parseLevel(String s)