src/share/classes/java/rmi/server/LogStream.java
Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:
*** 30,40 ****
/**
* <code>LogStream</code> provides a mechanism for logging errors that are
* of possible interest to those monitoring a system.
*
* @author Ann Wollrath (lots of code stolen from Ken Arnold)
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public class LogStream extends PrintStream {
--- 30,40 ----
/**
* <code>LogStream</code> provides a mechanism for logging errors that are
* of possible interest to those monitoring a system.
*
* @author Ann Wollrath (lots of code stolen from Ken Arnold)
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public class LogStream extends PrintStream {
*** 62,72 ****
* Create a new LogStream object. Since this only constructor is
* private, users must have a LogStream created through the "log"
* method.
* @param name string identifying messages from this log
* @out output stream that log messages will be sent to
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
private LogStream(String name, OutputStream out)
{
--- 62,72 ----
* Create a new LogStream object. Since this only constructor is
* private, users must have a LogStream created through the "log"
* method.
* @param name string identifying messages from this log
* @out output stream that log messages will be sent to
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
private LogStream(String name, OutputStream out)
{
*** 81,91 ****
* Return the LogStream identified by the given name. If
* a log corresponding to "name" does not exist, a log using
* the default stream is created.
* @param name name identifying the desired LogStream
* @return log associated with given name
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public static LogStream log(String name) {
LogStream stream;
--- 81,91 ----
* Return the LogStream identified by the given name. If
* a log corresponding to "name" does not exist, a log using
* the default stream is created.
* @param name name identifying the desired LogStream
* @return log associated with given name
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public static LogStream log(String name) {
LogStream stream;
*** 101,111 ****
/**
* Return the current default stream for new logs.
* @return default log stream
* @see #setDefaultStream
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public static synchronized PrintStream getDefaultStream() {
return defaultStream;
--- 101,111 ----
/**
* Return the current default stream for new logs.
* @return default log stream
* @see #setDefaultStream
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public static synchronized PrintStream getDefaultStream() {
return defaultStream;
*** 113,123 ****
/**
* Set the default stream for new logs.
* @param newDefault new default log stream
* @see #getDefaultStream
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public static synchronized void setDefaultStream(PrintStream newDefault) {
SecurityManager sm = System.getSecurityManager();
--- 113,123 ----
/**
* Set the default stream for new logs.
* @param newDefault new default log stream
* @see #getDefaultStream
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public static synchronized void setDefaultStream(PrintStream newDefault) {
SecurityManager sm = System.getSecurityManager();
*** 132,142 ****
/**
* Return the current stream to which output from this log is sent.
* @return output stream for this log
* @see #setOutputStream
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public synchronized OutputStream getOutputStream()
{
--- 132,142 ----
/**
* Return the current stream to which output from this log is sent.
* @return output stream for this log
* @see #setOutputStream
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public synchronized OutputStream getOutputStream()
{
*** 145,155 ****
/**
* Set the stream to which output from this log is sent.
* @param out new output stream for this log
* @see #getOutputStream
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public synchronized void setOutputStream(OutputStream out)
{
--- 145,155 ----
/**
* Set the stream to which output from this log is sent.
* @param out new output stream for this log
* @see #getOutputStream
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public synchronized void setOutputStream(OutputStream out)
{
*** 162,172 ****
/**
* Write 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.
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public void write(int b)
{
--- 162,172 ----
/**
* Write 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.
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public void write(int b)
{
*** 206,216 ****
super.write(b);
}
/**
* Write a subarray of bytes. Pass each through write byte method.
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public void write(byte b[], int off, int len)
{
--- 206,216 ----
super.write(b);
}
/**
* Write a subarray of bytes. Pass each through write byte method.
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public void write(byte b[], int off, int len)
{
*** 221,231 ****
}
/**
* Return log name as string representation.
* @return log name
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public String toString()
{
--- 221,231 ----
}
/**
* Return log name as string representation.
* @return log name
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public String toString()
{
*** 242,252 ****
/**
* Convert a string name of a logging level to its internal
* integer representation.
* @param s name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
* @return corresponding integer log level
! * @since JDK1.1
* @deprecated no replacement
*/
@Deprecated
public static int parseLevel(String s)
{
--- 242,252 ----
/**
* Convert a string name of a logging level to its internal
* integer representation.
* @param s name of logging level (e.g., 'SILENT', 'BRIEF', 'VERBOSE')
* @return corresponding integer log level
! * @since 1.1
* @deprecated no replacement
*/
@Deprecated
public static int parseLevel(String s)
{