クラスPipe.SinkChannel
java.lang.Object
java.nio.channels.spi.AbstractInterruptibleChannel
java.nio.channels.SelectableChannel
java.nio.channels.spi.AbstractSelectableChannel
java.nio.channels.Pipe.SinkChannel
- すべての実装されたインタフェース:
Closeable, AutoCloseable, Channel, GatheringByteChannel, InterruptibleChannel, WritableByteChannel
- 含まれているクラス:
Pipe
public abstract static class Pipe.SinkChannel extends AbstractSelectableChannel implements WritableByteChannel, GatheringByteChannel
Pipeの書込み可能な終端を表すチャネルです。- 導入されたバージョン:
- 1.4
-
コンストラクタのサマリー
コンストラクタ -
メソッドのサマリー
クラスで宣言されたメソッド AbstractSelectableChannel
blockingLock, configureBlocking, implCloseChannel, implCloseSelectableChannel, implConfigureBlocking, isBlocking, isRegistered, keyFor, provider, register修飾子と型メソッド説明final ObjectconfigureBlockingおよびregisterメソッドが同期するオブジェクトを取得します。final SelectableChannelconfigureBlocking(boolean block) このチャネルのブロック・モードを調整します。protected final void現在のチャネルをクローズします。protected abstract voidこの選択可能チャネルをクローズします。protected abstract voidimplConfigureBlocking(boolean block) このチャネルのブロック・モードを調整します。final booleanこのチャネル上の個々の入出力操作が前の入出力操作が完了するまでブロックされるかどうかを判断します。final boolean現在このチャネルがセレクタに登録されているかどうかを判断します。final SelectionKeyチャネルが指定されたセレクタに登録されていることを示すキーを取得します。final SelectorProviderprovider()このチャネルの作成元プロバイダを返します。final SelectionKeyこのチャネルを指定されたセレクタに登録し、選択キーを返します。クラスで宣言されたメソッド SelectableChannel
registerクラスで宣言されたメソッド AbstractInterruptibleChannel
begin, close, end, isOpenクラスオブジェクトで宣言されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait修飾子と型メソッド説明protected Objectclone()このオブジェクトのコピーを作成して、返します。booleanこのオブジェクトと他のオブジェクトが等しいかどうかを示します。protected voidfinalize()削除予定のため非推奨: このAPI要素は、将来のバージョンで削除される可能性があります。最終決定は非推奨であり、将来のリリースで削除される可能性があります。final Class<?> getClass()このObjectの実行時クラスを返します。inthashCode()このオブジェクトに対するハッシュ・コード値を返します。final voidnotify()このオブジェクトのモニターで待機中のスレッドを1つ再開します。final voidこのオブジェクトのモニターで待機中のすべてのスレッドを再開します。toString()オブジェクトの文字列表現を返します。final voidwait()現在のスレッドが目覚めるまで待機します。通常、notifiedまたはinterruptedです。final voidwait(long timeoutMillis) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。final voidwait(long timeoutMillis, int nanos) 現在のスレッドは、通常、notifiedまたはinterruptedであるか、一定のリアルタイムが経過するまで、目覚めるまで待機します。インタフェースで宣言されたメソッド GatheringByteChannel
write, write修飾子と型メソッド説明longwrite(ByteBuffer[] srcs) このチャネルのバイト・シーケンスを指定されたバッファから書き出します。longwrite(ByteBuffer[] srcs, int offset, int length) このチャネルのバイト・シーケンスを指定されたバッファのサブシーケンスから書き出します。インタフェースで宣言されたメソッド WritableByteChannel
write
-
コンストラクタの詳細
-
SinkChannel
protected SinkChannel(SelectorProvider provider) このクラスの新しいインスタンスを初期化します。- パラメータ:
provider- セレクタ・プロバイダ
-
-
メソッドの詳細
-
validOps
public final int validOps()このチャネルのサポートされている操作を識別する操作セットを返します。パイプ受信チャネルがサポートするのは書込みのみのため、このメソッドは
SelectionKey.OP_WRITEを返します。- 定義:
validOps、クラスSelectableChannel- 戻り値:
- 有効な操作セット
-