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
新管是由调用openPipe
方法的默认SelectorProvider
对象。
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.