aboutsummaryrefslogtreecommitdiff
path: root/libjava/java/rmi/server
diff options
context:
space:
mode:
authorMichael Koch <konqueror@gmx.de>2003-03-31 06:32:37 +0000
committerMichael Koch <mkoch@gcc.gnu.org>2003-03-31 06:32:37 +0000
commit60c98fd6115a55ff13c492d2b022925bc3f80111 (patch)
treefa831270c85982f422006a91567c687feca02603 /libjava/java/rmi/server
parent2ce0d0b097225538935a0ac9e1b713c024183547 (diff)
downloadgcc-60c98fd6115a55ff13c492d2b022925bc3f80111.zip
gcc-60c98fd6115a55ff13c492d2b022925bc3f80111.tar.gz
gcc-60c98fd6115a55ff13c492d2b022925bc3f80111.tar.bz2
VMID.java, [...]: Reformatted.
2003-03-31 Michael Koch <konqueror@gmx.de> * java/rmi/dgc/VMID.java, java/rmi/registry/RegistryHandler.java, java/rmi/server/LogStream.java, java/rmi/server/Operation.java, java/rmi/server/RemoteCall.java, java/rmi/server/RemoteRef.java, java/rmi/server/RemoteStub.java: Reformatted. From-SVN: r65078
Diffstat (limited to 'libjava/java/rmi/server')
-rw-r--r--libjava/java/rmi/server/LogStream.java58
-rw-r--r--libjava/java/rmi/server/Operation.java34
-rw-r--r--libjava/java/rmi/server/RemoteCall.java22
-rw-r--r--libjava/java/rmi/server/RemoteRef.java35
-rw-r--r--libjava/java/rmi/server/RemoteStub.java3
5 files changed, 85 insertions, 67 deletions
diff --git a/libjava/java/rmi/server/LogStream.java b/libjava/java/rmi/server/LogStream.java
index b7e8fea..2f4fe76 100644
--- a/libjava/java/rmi/server/LogStream.java
+++ b/libjava/java/rmi/server/LogStream.java
@@ -44,8 +44,7 @@ import java.io.IOException;
/**
* @deprecated
*/
-public class LogStream
- extends PrintStream
+public class LogStream extends PrintStream
{
public static final int SILENT = 0;
public static final int BRIEF = 10;
@@ -53,68 +52,71 @@ public class LogStream
private static PrintStream defStream;
- private LogStream(OutputStream s)
+ private LogStream (OutputStream s)
{
- super(s);
+ super (s);
}
- public static LogStream log(String name)
+ /**
+ * @deprecated
+ */
+ public static LogStream log (String name)
{
- throw new Error("Not implemented");
+ throw new Error ("Not implemented");
}
- public static PrintStream getDefaultStream()
+ public static PrintStream getDefaultStream ()
{
- return (defStream);
+ return defStream;
}
- public static void setDefaultStream(PrintStream s)
+ public static void setDefaultStream (PrintStream s)
{
defStream = s;
}
- public OutputStream getOutputStream()
+ public OutputStream getOutputStream ()
{
- return (out);
+ return out;
}
- public void setOutputStream(OutputStream s)
+ public void setOutputStream (OutputStream s)
{
out = s;
}
- public void write(int b)
+ public void write (int buffer)
{
- super.write(b);
+ super.write (buffer);
}
- public void write(byte[] b, int off, int len)
+ public void write (byte[] buffer, int offset, int len)
{
- super.write(b, off, len);
+ super.write (buffer, offset, len);
}
- public String toString()
+ public String toString ()
{
- throw new Error("Not implemented");
+ throw new Error ("Not implemented");
}
- public static int parseLevel(String s) {
- if (s.equalsIgnoreCase("silent"))
+ public static int parseLevel (String s)
+ {
+ if (s.equalsIgnoreCase ("silent"))
{
- return (SILENT);
+ return SILENT;
}
- if (s.equalsIgnoreCase("brief"))
+ if (s.equalsIgnoreCase ("brief"))
{
- return (BRIEF);
+ return BRIEF;
}
- if (s.equalsIgnoreCase("verbose"))
+ if (s.equalsIgnoreCase ("verbose"))
{
- return (VERBOSE);
+ return VERBOSE;
}
- return (SILENT);
-}
-
+ return SILENT;
+ }
}
diff --git a/libjava/java/rmi/server/Operation.java b/libjava/java/rmi/server/Operation.java
index 9b1e7c2..6fd408c 100644
--- a/libjava/java/rmi/server/Operation.java
+++ b/libjava/java/rmi/server/Operation.java
@@ -40,20 +40,22 @@ package java.rmi.server;
/**
* @deprecated
*/
-public class Operation {
-
-private String operation;
-
-public Operation(String op) {
- operation = op;
-}
-
-public String getOperation() {
- return (operation);
-}
-
-public String toString() {
- return (operation);
-}
-
+public class Operation
+{
+ private String operation;
+
+ public Operation (String op)
+ {
+ operation = op;
+ }
+
+ public String getOperation ()
+ {
+ return operation;
+ }
+
+ public String toString ()
+ {
+ return operation;
+ }
}
diff --git a/libjava/java/rmi/server/RemoteCall.java b/libjava/java/rmi/server/RemoteCall.java
index eac9ee2..7621152 100644
--- a/libjava/java/rmi/server/RemoteCall.java
+++ b/libjava/java/rmi/server/RemoteCall.java
@@ -46,14 +46,20 @@ import java.io.StreamCorruptedException;
/**
* @deprecated
*/
-public interface RemoteCall {
+public interface RemoteCall
+{
+ public ObjectOutput getOutputStream () throws IOException;
-public ObjectOutput getOutputStream() throws IOException;
-public void releaseOutputStream() throws IOException;
-public ObjectInput getInputStream() throws IOException;
-public void releaseInputStream() throws IOException;
-public ObjectOutput getResultStream(boolean success) throws IOException, StreamCorruptedException;
-public void executeCall() throws Exception;
-public void done() throws IOException;
+ public void releaseOutputStream () throws IOException;
+ public ObjectInput getInputStream () throws IOException;
+
+ public void releaseInputStream () throws IOException;
+
+ public ObjectOutput getResultStream (boolean success)
+ throws IOException, StreamCorruptedException;
+
+ public void executeCall () throws Exception;
+
+ public void done () throws IOException;
}
diff --git a/libjava/java/rmi/server/RemoteRef.java b/libjava/java/rmi/server/RemoteRef.java
index 4abf6e1..d9f9232 100644
--- a/libjava/java/rmi/server/RemoteRef.java
+++ b/libjava/java/rmi/server/RemoteRef.java
@@ -43,19 +43,28 @@ import java.rmi.Remote;
import java.rmi.RemoteException;
import java.io.ObjectOutput;
-public interface RemoteRef
- extends Externalizable {
+public interface RemoteRef extends Externalizable
+{
+ public static final long serialVersionUID = 0;
+
+ public static final String packagePrefix = "gnu.java.rmi.server";
-public static final long serialVersionUID = 0;
-public static final String packagePrefix = "gnu.java.rmi.server";
-
-public void invoke(RemoteCall call) throws Exception;
-public Object invoke(Remote obj, Method method, Object[] params, long opnum) throws Exception;
-public RemoteCall newCall(RemoteObject obj, Operation[] op, int opnum, long hash) throws RemoteException;
-public void done(RemoteCall call) throws RemoteException;
-public boolean remoteEquals(RemoteRef ref);
-public int remoteHashCode();
-public String getRefClass(ObjectOutput out);
-public String remoteToString();
+ public void invoke(RemoteCall call) throws Exception;
+
+ public Object invoke (Remote obj, Method method, Object[] params, long opnum)
+ throws Exception;
+
+ public RemoteCall newCall (RemoteObject obj, Operation[] op, int opnum,
+ long hash)
+ throws RemoteException;
+ public void done (RemoteCall call) throws RemoteException;
+
+ public boolean remoteEquals (RemoteRef ref);
+
+ public int remoteHashCode ();
+
+ public String getRefClass (ObjectOutput out);
+
+ public String remoteToString ();
}
diff --git a/libjava/java/rmi/server/RemoteStub.java b/libjava/java/rmi/server/RemoteStub.java
index 83cce35..cc6b589 100644
--- a/libjava/java/rmi/server/RemoteStub.java
+++ b/libjava/java/rmi/server/RemoteStub.java
@@ -37,8 +37,7 @@ exception statement from your version. */
package java.rmi.server;
-public abstract class RemoteStub
- extends RemoteObject
+public abstract class RemoteStub extends RemoteObject
{
static final long serialVersionUID = -1585587260594494182l;