/[classpath]/classpath/java/nio/channels/SocketChannel.java
ViewVC logotype

Diff of /classpath/java/nio/channels/SocketChannel.java

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by mkoch, Wed Nov 13 10:53:38 2002 UTC revision 1.7 by mkoch, Fri Nov 22 12:35:11 2002 UTC
# Line 60  abstract public class SocketChannel exte Line 60  abstract public class SocketChannel exte
60    
61    /**    /**
62     * Opens a socket channel.     * Opens a socket channel.
63       *
64       * @exception IOException If an error occurs
65     */     */
66    public static SocketChannel open () throws IOException    public static SocketChannel open () throws IOException
67    {    {
# Line 68  abstract public class SocketChannel exte Line 70  abstract public class SocketChannel exte
70        
71    /**    /**
72     * Opens a channel and connects it to a remote address.     * Opens a channel and connects it to a remote address.
73       *
74       * @exception IOException If an error occurs
75     */     */
76    public static SocketChannel open (SocketAddress remote) throws IOException    public static SocketChannel open (SocketAddress remote) throws IOException
77    {    {
# Line 82  abstract public class SocketChannel exte Line 86  abstract public class SocketChannel exte
86            
87    /**    /**
88     * Reads data from the channel.     * Reads data from the channel.
89       *
90       * @exception IOException If an error occurs
91     */     */
92    public final long read (ByteBuffer[] dsts)    public final long read (ByteBuffer[] dsts)
93    {    {
# Line 97  abstract public class SocketChannel exte Line 103  abstract public class SocketChannel exte
103            
104    /**    /**
105     * Writes data to the channel.     * Writes data to the channel.
106       *
107       * @exception IOException If an error occurs
108     */     */
109    public final long write (ByteBuffer[] dsts)    public final long write (ByteBuffer[] dsts)
110    {    {
# Line 120  abstract public class SocketChannel exte Line 128  abstract public class SocketChannel exte
128    
129    /**    /**
130     * Reads data from the channel.     * Reads data from the channel.
131       *
132       * @exception IOException If an error occurs
133     */     */
134    public abstract int read (ByteBuffer dst);    public abstract int read (ByteBuffer dst);
135    
136    /**    /**
137     * Connects the channel's socket to the remote address.     * Connects the channel's socket to the remote address.
138       *
139       * @exception IOException If an error occurs
140     */     */
141    public abstract boolean connect (SocketAddress remote) throws IOException;    public abstract boolean connect (SocketAddress remote) throws IOException;
142        
143    /**    /**
144     * Finishes the process of connecting a socket channel.     * Finishes the process of connecting a socket channel.
145       *
146       * @exception IOException If an error occurs
147     */     */
148    public abstract boolean finishConnect ();    public abstract boolean finishConnect ();
149    
# Line 145  abstract public class SocketChannel exte Line 159  abstract public class SocketChannel exte
159        
160    /**    /**
161     * Reads data from the channel.     * Reads data from the channel.
162       *
163       * @exception IOException If an error occurs
164     */     */
165    public abstract long read (ByteBuffer[] dsts, int offset, int length);    public abstract long read (ByteBuffer[] dsts, int offset, int length);
166    
# Line 155  abstract public class SocketChannel exte Line 171  abstract public class SocketChannel exte
171        
172    /**    /**
173     * Writes data to the channel.     * Writes data to the channel.
174       *
175       * @exception IOException If an error occurs
176     */     */
177    public abstract int write (ByteBuffer src);    public abstract int write (ByteBuffer src);
178        
179    /**    /**
180     * Writes data to the channel.     * Writes data to the channel.
181       *
182       * @exception IOException If an error occurs
183     */     */
184    public abstract long write (ByteBuffer[] srcs, int offset, int length);    public abstract long write (ByteBuffer[] srcs, int offset, int length);
185  }  }

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26