Class PipedReader


public class PipedReader extends DataReader
Reads the records written to a connected PipedWriter, usually on another thread; reads block until a record arrives and the stream ends when the writer is closed.
  • Constructor Details

    • PipedReader

      public PipedReader()
      Creates a reader with an unbounded queue.
    • PipedReader

      public PipedReader(int queueCapacity)
      Creates a reader whose queue holds at most queueCapacity records; the writer blocks while it is full.
  • Method Details