| Modifier and Type | Class and Description |
|---|---|
static class |
Pipe.SinkChannel
一个代表 Pipe的可写端的通道 。
|
static class |
Pipe.SourceChannel
一个代表 Pipe可读端的通道 。
|
| Modifier | Constructor and Description |
|---|---|
protected |
Pipe()
初始化此类的新实例。
|
| Modifier and Type | Method and Description |
|---|---|
static Pipe |
open()
打开管道。
|
abstract Pipe.SinkChannel |
sink()
返回此管道的接收通道。
|
abstract Pipe.SourceChannel |
source()
返回此管道的源通道。
|
public abstract Pipe.SourceChannel source()
public abstract Pipe.SinkChannel sink()
public static Pipe open() throws IOException
新管道是通过调用系统范围默认的SelectorProvider对象的openPipe方法创建的。
IOException - 如果发生I / O错误
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.