home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &n…he Search for Life DVD 2 / DVD-ROM.iso / install / jre1_3 / lib / rt.jar / java / rmi / MarshalledObject$MarshalledObjectOutputStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  860 b   |  33 lines

  1. package java.rmi;
  2.  
  3. import java.io.IOException;
  4. import java.io.ObjectOutputStream;
  5. import java.io.OutputStream;
  6. import sun.rmi.server.MarshalOutputStream;
  7.  
  8. class MarshalledObject$MarshalledObjectOutputStream extends MarshalOutputStream {
  9.    private ObjectOutputStream locOut;
  10.    private boolean hadAnnotations;
  11.  
  12.    public MarshalledObject$MarshalledObjectOutputStream(OutputStream var1, OutputStream var2) throws IOException {
  13.       super(var1);
  14.       ((ObjectOutputStream)this).useProtocolVersion(2);
  15.       this.locOut = new ObjectOutputStream(var2);
  16.       this.hadAnnotations = false;
  17.    }
  18.  
  19.    public boolean hadAnnotations() {
  20.       return this.hadAnnotations;
  21.    }
  22.  
  23.    protected void writeLocation(String var1) throws IOException {
  24.       this.hadAnnotations |= var1 != null;
  25.       this.locOut.writeObject(var1);
  26.    }
  27.  
  28.    public void flush() throws IOException {
  29.       super.flush();
  30.       this.locOut.flush();
  31.    }
  32. }
  33.