EDU.oswego.cs.dl.util.concurrent.misc
public class PipedChannel extends SemaphoreControlledChannel
IO Exceptions are transformed into Errors. This is in general not a good idea, but seems to be the most reasonable compromise for the intended usage contexts.
Status Uncertain. There are enough conceptual and implementation snags surrounding use of pipes as Channels to downplay use. However, without such bridges, people would have to duplicate code that should work the same way in both cases.
Field Summary | |
---|---|
protected PipedInputStream | inp_ |
protected ObjectInputStream | in_ |
protected PipedOutputStream | outp_ |
protected ObjectOutputStream | out_ |
Constructor Summary | |
---|---|
PipedChannel() |
Method Summary | |
---|---|
protected Object | extract() Shared mechanics for take-based methods * |
protected ObjectInputStream | in()
Return input stream, first constructing if necessary.
|
protected void | insert(Object x) Shared mechanics for put-based methods * |
protected ObjectOutputStream | out()
Return output stream, first constructing if necessary.
|
Object | peek() Stubbed out for now * |