JavaTM 2 Platform
Standard Ed. 6

類別 java.nio.channels.spi.AbstractSelectableChannel
的使用

使用 AbstractSelectableChannel 的軟體套件
java.nio.channels 定義了各種通道,這些通道表示到能夠執行 I/O 操作的實體(如檔案和Socket)的連接;定義了用於多路傳輸的、非阻塞 I/O 操作的選擇器。 
java.nio.channels.spi 用於 java.nio.channels 套件的服務提供者類別。 
 

java.nio.channels 中 AbstractSelectableChannel 的使用
 

java.nio.channels 中 AbstractSelectableChannel 的子類別
 class DatagramChannel
          針對導向資料電報Socket的可選擇通道。
static class Pipe.SinkChannel
          表示 Pipe 的可寫入結尾的通道。
static class Pipe.SourceChannel
          表示 Pipe 的可讀取結尾的通道。
 class ServerSocketChannel
          針對導向串流的偵聽Socket的可選擇通道。
 class SocketChannel
          針對導向串流的連接Socket的可選擇通道。
 

java.nio.channels.spi 中 AbstractSelectableChannel 的使用
 

參數型別為 AbstractSelectableChannel 的 java.nio.channels.spi 中的方法
protected abstract  SelectionKey AbstractSelector.register(AbstractSelectableChannel ch, int ops, Object att)
          向此選擇器註冊給定的通道。
 


JavaTM 2 Platform
Standard Ed. 6

提交錯誤或意見

版權所有 2008 Sun Microsystems, Inc. 保留所有權利。請遵守GNU General Public License, version 2 only。