2003-03-21 Michael Koch <konqueror@gmx.de>
* java/rmi/activation/Activatable.java (serialVersionUID): New member variable. * java/rmi/activation/ActivationGroup.java (serialVersionUID): New member variable. * java/rmi/activation/ActivationGroupDesc.java (serialVersionUID): New member variable. * java/rmi/registry/Registry.java: Reformated. (Registry): Deprecated. * java/rmi/server/LoaderHandler.java Reformated. (LoaderHandler): Deprecated. * java/rmi/server/LogStream.java Reformated. (LogStream): Deprecated. * java/rmi/server/Operation.java (Operation): Deprecated. * java/rmi/server/RMIFailureHandler.java: Reformated. * java/rmi/server/RMISocketFactory.java: Reformated. * java/rmi/server/RemoteCall.java (RemoteCall): Deprecated. * java/rmi/server/RemoteStub.java: Reformated. * java/rmi/server/Skeleton.java Reformated. (Skeleton): Deprecated. From-SVN: r64655
This commit is contained in:
parent
ae429eabd8
commit
15596d409e
15 changed files with 223 additions and 122 deletions
|
@ -41,62 +41,80 @@ import java.io.PrintStream;
|
|||
import java.io.OutputStream;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
public class LogStream
|
||||
extends PrintStream {
|
||||
extends PrintStream
|
||||
{
|
||||
public static final int SILENT = 0;
|
||||
public static final int BRIEF = 10;
|
||||
public static final int VERBOSE = 20;
|
||||
|
||||
public static final int SILENT = 0;
|
||||
public static final int BRIEF = 10;
|
||||
public static final int VERBOSE = 20;
|
||||
private static PrintStream defStream;
|
||||
|
||||
private static PrintStream defStream;
|
||||
private LogStream(OutputStream s)
|
||||
{
|
||||
super(s);
|
||||
}
|
||||
|
||||
private LogStream(OutputStream s) {
|
||||
super(s);
|
||||
}
|
||||
public static LogStream log(String name)
|
||||
{
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
public static LogStream log(String name) {
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
public static PrintStream getDefaultStream()
|
||||
{
|
||||
return (defStream);
|
||||
}
|
||||
|
||||
public static void setDefaultStream(PrintStream s)
|
||||
{
|
||||
defStream = s;
|
||||
}
|
||||
|
||||
public static PrintStream getDefaultStream() {
|
||||
return (defStream);
|
||||
}
|
||||
public OutputStream getOutputStream()
|
||||
{
|
||||
return (out);
|
||||
}
|
||||
|
||||
public static void setDefaultStream(PrintStream s) {
|
||||
defStream = s;
|
||||
}
|
||||
public void setOutputStream(OutputStream s)
|
||||
{
|
||||
out = s;
|
||||
}
|
||||
|
||||
public OutputStream getOutputStream() {
|
||||
return (out);
|
||||
}
|
||||
public void write(int b)
|
||||
{
|
||||
super.write(b);
|
||||
}
|
||||
|
||||
public void setOutputStream(OutputStream s) {
|
||||
out = s;
|
||||
}
|
||||
public void write(byte[] b, int off, int len)
|
||||
{
|
||||
super.write(b, off, len);
|
||||
}
|
||||
|
||||
public void write(int b) {
|
||||
super.write(b);
|
||||
}
|
||||
public String toString()
|
||||
{
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
public void write(byte[] b, int off, int len) {
|
||||
super.write(b, off, len);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
throw new Error("Not implemented");
|
||||
}
|
||||
|
||||
public static int parseLevel(String s) {
|
||||
if (s.equalsIgnoreCase("silent")) {
|
||||
return (SILENT);
|
||||
}
|
||||
if (s.equalsIgnoreCase("brief")) {
|
||||
return (BRIEF);
|
||||
}
|
||||
if (s.equalsIgnoreCase("verbose")) {
|
||||
return (VERBOSE);
|
||||
}
|
||||
return (SILENT);
|
||||
public static int parseLevel(String s) {
|
||||
if (s.equalsIgnoreCase("silent"))
|
||||
{
|
||||
return (SILENT);
|
||||
}
|
||||
|
||||
if (s.equalsIgnoreCase("brief"))
|
||||
{
|
||||
return (BRIEF);
|
||||
}
|
||||
|
||||
if (s.equalsIgnoreCase("verbose"))
|
||||
{
|
||||
return (VERBOSE);
|
||||
}
|
||||
|
||||
return (SILENT);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue