Java java.io PipedInputStream fields, constructors, methods, implement or subclass

Example usage for Java java.io PipedInputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io PipedInputStream.

The text is from its open source code.

Subclass

java.io.PipedInputStream has subclasses.
Click this link to see all its subclasses.

Constructor

PipedInputStream(PipedOutputStream src)
Creates a PipedInputStream so that it is connected to the piped output stream src.
PipedInputStream(int pipeSize)
Creates a PipedInputStream so that it is not yet #connect(java.io.PipedOutputStream) connected and uses the specified pipe size for the pipe's buffer.
PipedInputStream()
Creates a PipedInputStream so that it is not yet #connect(java.io.PipedOutputStream) connected .
PipedInputStream(PipedOutputStream src, int pipeSize)
Creates a PipedInputStream so that it is connected to the piped output stream src and uses the specified pipe size for the pipe's buffer.

Method

intavailable()
Returns the number of bytes that can be read from this input stream without blocking.
voidclose()
Closes this piped input stream and releases any system resources associated with the stream.
voidconnect(PipedOutputStream src)
Causes this piped input stream to be connected to the piped output stream src.
intread(byte b[], int off, int len)
Reads up to len bytes of data from this piped input stream into an array of bytes.
intread()
Reads the next byte of data from this piped input stream.
intread(byte b[])
Reads some number of bytes from the input stream and stores them into the buffer array b.