KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > mx4j > tools > remote > caucho > CauchoInput


1 /*
2  * Copyright (C) The MX4J Contributors.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the MX4J License version 1.0.
6  * See the terms of the MX4J License in the documentation provided with this software.
7  */

8
9 package mx4j.tools.remote.caucho;
10
11 import java.io.IOException JavaDoc;
12
13 /**
14  * @version $
15  */

16 public interface CauchoInput
17 {
18    public void startCall() throws IOException JavaDoc;
19
20    public void completeCall() throws IOException JavaDoc;
21
22    public String JavaDoc readHeader() throws IOException JavaDoc;
23
24    public String JavaDoc readMethod() throws IOException JavaDoc;
25
26    /**
27     * Reads and returns an object of the given class,
28     * or a generic object if the class is null.
29     */

30    public Object JavaDoc readObject(Class JavaDoc cls) throws IOException JavaDoc;
31
32    /**
33     * Starts reading a reply of a previous call; if the call threw an exception,
34     * the exception is read and re-thrown, otherwise the result of the call
35     * can be read using {@link #readObject}.
36     */

37    public void startReply() throws Exception JavaDoc;
38
39    public void completeReply() throws IOException JavaDoc;
40 }
41
Popular Tags