jdk/src/share/classes/java/nio/channels/Channels.java
changeset 3631 4dc04372d56b
parent 2057 3acf8e5e2ca0
child 5506 202f599c92aa
equal deleted inserted replaced
3629:6035eed86b12 3631:4dc04372d56b
   180 
   180 
   181             };
   181             };
   182     }
   182     }
   183 
   183 
   184     /**
   184     /**
   185      * {@note new}
       
   186      * Constructs a stream that reads bytes from the given channel.
   185      * Constructs a stream that reads bytes from the given channel.
   187      *
   186      *
   188      * <p> The stream will not be buffered, and it will not support the {@link
   187      * <p> The stream will not be buffered, and it will not support the {@link
   189      * InputStream#mark mark} or {@link InputStream#reset reset} methods.  The
   188      * InputStream#mark mark} or {@link InputStream#reset reset} methods.  The
   190      * stream will be safe for access by multiple concurrent threads.  Closing
   189      * stream will be safe for access by multiple concurrent threads.  Closing
   256             }
   255             }
   257         };
   256         };
   258     }
   257     }
   259 
   258 
   260     /**
   259     /**
   261      * {@note new}
       
   262      * Constructs a stream that writes bytes to the given channel.
   260      * Constructs a stream that writes bytes to the given channel.
   263      *
   261      *
   264      * <p> The stream will not be buffered. The stream will be safe for access
   262      * <p> The stream will not be buffered. The stream will be safe for access
   265      * by multiple concurrent threads.  Closing the stream will in turn cause
   263      * by multiple concurrent threads.  Closing the stream will in turn cause
   266      * the channel to be closed.  </p>
   264      * the channel to be closed.  </p>