home *** CD-ROM | disk | FTP | other *** search
/ S283 Planetary Science &… the Search for Life CD 3 / 0_CD-ROM.iso / install / jre1_3 / lib / rt.jar / sun / awt / windows / WDropTargetContextPeerIStream.class (.txt) < prev    next >
Encoding:
Java Class File  |  1979-12-31  |  846 b   |  57 lines

  1. package sun.awt.windows;
  2.  
  3. import java.io.IOException;
  4. import java.io.InputStream;
  5.  
  6. class WDropTargetContextPeerIStream extends InputStream {
  7.    private int istream;
  8.    private String nativeType;
  9.  
  10.    WDropTargetContextPeerIStream(int var1, String var2) throws IOException {
  11.       if (var1 == 0) {
  12.          throw new IOException("No IStream");
  13.       } else {
  14.          this.istream = var1;
  15.          this.nativeType = var2;
  16.       }
  17.    }
  18.  
  19.    public int available() throws IOException {
  20.       if (this.istream == 0) {
  21.          throw new IOException("No IStream");
  22.       } else {
  23.          return this.Available(this.istream);
  24.       }
  25.    }
  26.  
  27.    private native int Available(int var1);
  28.  
  29.    public int read() throws IOException {
  30.       if (this.istream == 0) {
  31.          throw new IOException("No IStream");
  32.       } else {
  33.          return this.Read(this.istream);
  34.       }
  35.    }
  36.  
  37.    private native int Read(int var1) throws IOException;
  38.  
  39.    public int read(byte[] var1, int var2, int var3) throws IOException {
  40.       if (this.istream == 0) {
  41.          throw new IOException("No IStream");
  42.       } else {
  43.          return this.ReadBytes(this.istream, var1, var2, var3);
  44.       }
  45.    }
  46.  
  47.    private native int ReadBytes(int var1, byte[] var2, int var3, int var4) throws IOException;
  48.  
  49.    public void close() throws IOException {
  50.       super.close();
  51.       this.Close(this.istream);
  52.       this.istream = 0;
  53.    }
  54.  
  55.    private native void Close(int var1);
  56. }
  57.