- java.lang.Object
-
- java.io.OutputStream
-
- java.io.FilterOutputStream
-
- java.io.PrintStream
-
- java.rmi.server.LogStream
-
- All Implemented Interfaces:
- Closeable, Flushable, Appendable, AutoCloseable
Deprecated.no replacement
@Deprecated public class LogStream extends PrintStream
LogStream
provides a mechanism for logging errors that are of possible interest to those monitoring a system.- Since:
- JDK1.1
-
-
Field Summary
Fields Modifier and Type Field and Description static int
BRIEF
Deprecated.log level constant (brief logging).static int
SILENT
Deprecated.log level constant (no logging).static int
VERBOSE
Deprecated.log level constant (verbose logging).-
Fields inherited from class java.io.FilterOutputStream
out
-
-
Method Summary
Methods Modifier and Type Method and Description static PrintStream
getDefaultStream()
Deprecated.no replacementOutputStream
getOutputStream()
Deprecated.no replacementstatic LogStream
log(String name)
Deprecated.no replacementstatic int
parseLevel(String s)
Deprecated.no replacementstatic void
setDefaultStream(PrintStream newDefault)
Deprecated.no replacementvoid
setOutputStream(OutputStream out)
Deprecated.no replacementString
toString()
Deprecated.no replacementvoid
write(byte[] b, int off, int len)
Deprecated.no replacementvoid
write(int b)
Deprecated.no replacement-
Methods inherited from class 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
-
Methods inherited from class java.io.FilterOutputStream
write
-
-
-
-
Field Detail
-
SILENT
public static final int SILENT
Deprecated.log level constant (no logging).- See Also:
- Constant Field Values
-
BRIEF
public static final int BRIEF
Deprecated.log level constant (brief logging).- See Also:
- Constant Field Values
-
VERBOSE
public static final int VERBOSE
Deprecated.log level constant (verbose logging).- See Also:
- Constant Field Values
-
-
Method Detail
-
log
@Deprecated public static LogStream log(String name)
Deprecated. no replacementReturn the LogStream identified by the given name. If a log corresponding to "name" does not exist, a log using the default stream is created.- Parameters:
name
- name identifying the desired LogStream- Returns:
- log associated with given name
- Since:
- JDK1.1
-
getDefaultStream
@Deprecated public static PrintStream getDefaultStream()
Deprecated. no replacementReturn the current default stream for new logs.- Returns:
- default log stream
- Since:
- JDK1.1
- See Also:
setDefaultStream(java.io.PrintStream)
-
setDefaultStream
@Deprecated public static void setDefaultStream(PrintStream newDefault)
Deprecated. no replacementSet the default stream for new logs.- Parameters:
newDefault
- new default log stream- Since:
- JDK1.1
- See Also:
getDefaultStream()
-
getOutputStream
@Deprecated public OutputStream getOutputStream()
Deprecated. no replacementReturn the current stream to which output from this log is sent.- Returns:
- output stream for this log
- Since:
- JDK1.1
- See Also:
setOutputStream(java.io.OutputStream)
-
setOutputStream
@Deprecated public void setOutputStream(OutputStream out)
Deprecated. no replacementSet the stream to which output from this log is sent.- Parameters:
out
- new output stream for this log- Since:
- JDK1.1
- See Also:
getOutputStream()
-
write
@Deprecated public void write(int b)
Deprecated. no replacementWrite 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.- Overrides:
write
in classPrintStream
- Parameters:
b
- The byte to be written- Since:
- JDK1.1
- See Also:
PrintStream.print(char)
,PrintStream.println(char)
-
write
@Deprecated public void write(byte[] b, int off, int len)
Deprecated. no replacementWrite a subarray of bytes. Pass each through write byte method.- Overrides:
write
in classPrintStream
- Parameters:
b
- A byte arrayoff
- Offset from which to start taking byteslen
- Number of bytes to write- Since:
- JDK1.1
- See Also:
FilterOutputStream.write(int)
-
toString
@Deprecated public String toString()
Deprecated. no replacementReturn log name as string representation.
-
parseLevel
@Deprecated public static int parseLevel(String s)
Deprecated. no replacementConvert a string name of a logging level to its internal integer representation.- Parameters:
s
- name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')- Returns:
- corresponding integer log level
- Since:
- JDK1.1
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
21/12/2024 04:36:20 Cette version de la page est en cache (à la date du 21/12/2024 04:36:20) afin d'accélérer le traitement. Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la dernère version de la page.Document créé le 01/08/2006, dernière modification le 04/03/2020
Source du document imprimé : https://www.gaudry.be/java-api-rf-java/rmi/server/logstream.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.