Differentiate between PipedReader and PipedWriter.
Share
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.
The PipedReader class is used to read the contents of a pipe as a stream of characters. This class is used generally to read text.
PipedReader class must be connected to the same PipedWriter and are used by different threads.
The PipedWriter class is used to write java pipe as a stream of characters. This class is used generally for writing text. Generally PipedWriter is connected to a PipedReader and used by different threads.