大家来翻译API吧!谁翻译得好,这100分给谁:)
A piped input stream should be connected to a piped output stream;
the piped input stream then provides whatever data bytes are written to the piped output stream.
Typically, data is read from a PipedInputStream object by one thread and data is written to the corresponding PipedOutputStream by some other thread.
Attempting to use both objects from a single thread is not recommended, as it may deadlock the thread.
The piped input stream contains a buffer, decoupling read operations from write operations, within limits.
我的翻译是:
一个管道输入流必须连接到一个管道输出流;
然后管道输入流提供准备写入到管道输入流的2进制数据。
比如,在一个线程中,数据从一个PipedInputStream 对象读取来,
然后通过另一个线程,数据写到相应的PipedOutputStream对象中去。
不推荐在一个线程中使用这两个对象,因为那样可能会造成死锁。
管道输入流有一个缓冲器。。。。。(不会翻译了)