diff options
author | Brian Hinz <bphinz@users.sourceforge.net> | 2012-02-08 04:21:43 +0000 |
---|---|---|
committer | Brian Hinz <bphinz@users.sourceforge.net> | 2012-02-08 04:21:43 +0000 |
commit | 8d37f2054b6da02957b12d02aaf96dd5eecc89c7 (patch) | |
tree | 8ff59055186d4e92c68d7e2cc1e624399bf0cdc8 /java/com/tigervnc/network/FileDescriptor.java | |
parent | 4a611ce4d656bd1a3c9c6bdf6073459c1044a022 (diff) | |
download | tigervnc-8d37f2054b6da02957b12d02aaf96dd5eecc89c7.tar.gz tigervnc-8d37f2054b6da02957b12d02aaf96dd5eecc89c7.zip |
corrected return value for read function to match unix socket read. updated exception handling to match C code.
git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@4846 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'java/com/tigervnc/network/FileDescriptor.java')
-rw-r--r-- | java/com/tigervnc/network/FileDescriptor.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/java/com/tigervnc/network/FileDescriptor.java b/java/com/tigervnc/network/FileDescriptor.java index e2d04fab..28ea96b8 100644 --- a/java/com/tigervnc/network/FileDescriptor.java +++ b/java/com/tigervnc/network/FileDescriptor.java @@ -18,14 +18,14 @@ */ package com.tigervnc.network; -import java.lang.Exception; import java.io.IOException; +import com.tigervnc.rdr.Exception; public interface FileDescriptor { - public int read(byte[] buf, int bufPtr, int length) throws java.lang.Exception; - public int write(byte[] buf, int bufPtr, int length) throws java.lang.Exception; - public int select(int interestOps, int timeout) throws java.lang.Exception; + public int read(byte[] buf, int bufPtr, int length) throws Exception; + public int write(byte[] buf, int bufPtr, int length) throws Exception; + public int select(int interestOps, int timeout) throws Exception; public void close() throws IOException; } |