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

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

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

revision 1.3 by mark, Tue Apr 30 21:37:26 2002 UTC revision 1.4 by mkoch, Mon Nov 11 14:25:46 2002 UTC
# Line 37  exception statement from your version. * Line 37  exception statement from your version. *
37    
38  package java.nio.channels;  package java.nio.channels;
39    
40    import java.nio.ByteBuffer;
41    import java.io.IOException;
42    
43  import java.nio.*;  public interface GatheringByteChannel
44  import java.io.*;    extends WritableByteChannel
   
 public interface GatheringByteChannel extends WritableByteChannel  
45  {  {
46      public long write(ByteBuffer[] srcs, int offset, int length) throws IOException;    /**
47      public int write(ByteBuffer[] srcs) throws IOException;     * Writes a sequence of bytes to this channel from a subsequence of
48       * the given buffers
49       *
50       * @exception AsynchronousCloseException If another thread closes this
51       * channel while the write operation is in progress
52       * @exception ClosedByInterruptException If another thread interrupts the
53       * current thread while the write operation is in progress, thereby closing
54       * the channel and setting the current thread's interrupt status
55       * @exception ClosedChannelException If this channel is closed
56       * @exception IndexOutOfBoundsException If the preconditions on the offset
57       * and length parameters do not hold
58       * @exception IOException If an error occurs
59       * @exception NonWritableChannelException If this channel was not opened for
60       * writing
61       */
62      public long write(ByteBuffer[] srcs, int offset, int length)
63        throws IOException;
64      
65      /**
66       * Writes a sequence of bytes to this channel from the given buffers
67       *
68       * @exception AsynchronousCloseException If another thread closes this
69       * channel while the write operation is in progress
70       * @exception ClosedByInterruptException If another thread interrupts the
71       * current thread while the write operation is in progress, thereby closing
72       * the channel and setting the current thread's interrupt status
73       * @exception ClosedChannelException If this channel is closed
74       * @exception IOException If an error occurs
75       * @exception NonWritableChannelException If this channel was not opened for
76       * writing
77       */
78      public long write(ByteBuffer[] srcs) throws IOException;
79  }  }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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