home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / VPage / Java.bin / CLASSES.ZIP / sun / rmi / transport / ConnectionOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1997-07-08  |  1.4 KB  |  49 lines

  1. package sun.rmi.transport;
  2.  
  3. import java.io.IOException;
  4. import java.io.OutputStream;
  5. import java.rmi.server.UID;
  6. import java.util.Vector;
  7. import sun.rmi.server.MarshalOutputStream;
  8.  
  9. class ConnectionOutputStream extends MarshalOutputStream {
  10.    private boolean resultStream = false;
  11.    private Vector objList;
  12.    private UID ackID = new UID();
  13.  
  14.    ConnectionOutputStream(OutputStream var1) throws IOException {
  15.       super(var1);
  16.    }
  17.  
  18.    ConnectionOutputStream(OutputStream var1, boolean var2) throws IOException {
  19.       super(var1);
  20.       this.resultStream = var2;
  21.    }
  22.  
  23.    void writeID() throws IOException {
  24.       this.ackID.write(this);
  25.    }
  26.  
  27.    boolean isResultStream() {
  28.       return this.resultStream;
  29.    }
  30.  
  31.    void saveRef(LiveRef var1) {
  32.       if (this.resultStream) {
  33.          if (this.objList == null) {
  34.             this.objList = new Vector();
  35.          }
  36.  
  37.          this.objList.addElement(var1);
  38.       }
  39.  
  40.    }
  41.  
  42.    void done(Connection var1) {
  43.       if (this.objList != null && !this.objList.isEmpty()) {
  44.          new DGCAckHandler(var1.getChannel(), this.ackID, this.objList);
  45.       }
  46.  
  47.    }
  48. }
  49.