home *** CD-ROM | disk | FTP | other *** search
- package sun.awt.windows;
-
- import java.io.IOException;
- import java.io.InputStream;
-
- class WDropTargetContextPeerIStream extends InputStream {
- private int istream;
- private String nativeType;
-
- WDropTargetContextPeerIStream(int var1, String var2) throws IOException {
- if (var1 == 0) {
- throw new IOException("No IStream");
- } else {
- this.istream = var1;
- this.nativeType = var2;
- }
- }
-
- public int available() throws IOException {
- if (this.istream == 0) {
- throw new IOException("No IStream");
- } else {
- return this.Available(this.istream);
- }
- }
-
- private native int Available(int var1);
-
- public int read() throws IOException {
- if (this.istream == 0) {
- throw new IOException("No IStream");
- } else {
- return this.Read(this.istream);
- }
- }
-
- private native int Read(int var1) throws IOException;
-
- public int read(byte[] var1, int var2, int var3) throws IOException {
- if (this.istream == 0) {
- throw new IOException("No IStream");
- } else {
- return this.ReadBytes(this.istream, var1, var2, var3);
- }
- }
-
- private native int ReadBytes(int var1, byte[] var2, int var3, int var4) throws IOException;
-
- public void close() throws IOException {
- super.close();
- this.Close(this.istream);
- this.istream = 0;
- }
-
- private native void Close(int var1);
- }
-