Open In App

Java.io.PipedInputStream class in Java

Pipes in IO provides a link between two threads running in JVM at the same time. So, Pipes are used both as source or destination.



Declaration:

public class PipedInputStream
  extends InputStream

Constructor :



Methods:

Use of available() : 5
Using read(buffer, offset, maxlen) : GEEKS
Closing the stream

Next Article: Java.io.PipedOutputStream class in Java


Article Tags :