- Java.io - Writer
- Java.io - StringWriter
- Java.io - StringReader
- Java.io - StringBufferInputStream
- Java.io - StreamTokenizer
- Java.io - SerializablePermission
- Java.io - SequenceInputStream
- Java.io - Reader
- Java.io - RandomAccessFile
- Java.io - PushbackReader
- Java.io - PushbackInputStream
- Java.io - PrintWriter
- Java.io - PrintStream
- Java.io - PipedWriter
- Java.io - PipedReader
- Java.io - PipedOutputStream
- Java.io - PipedInputStream
- Java.io - OutputStreamWriter
- Java.io - OutputStream
- Java.io - ObjectStreamField
- Java.io - ObjectStreamClass
- io - ObjectOutputStream.PutField
- Java.io - ObjectOutputStream
- Java.io - ObjectInputStream.GetField
- Java.io - ObjectInputStream
- Java.io - LineNumberReader
- Java.io - LineNumberInputStream
- Java.io - InputStreamReader
- Java.io - InputStream
- Java.io - FilterWriter
- Java.io - FilterReader
- Java.io - FilterOutputStream
- Java.io - FilterInputStream
- Java.io - FileWriter
- Java.io - FileReader
- Java.io - FilePermission
- Java.io - FileOutputStream
- Java.io - FileInputStream
- Java.io - FileDescriptor
- Java.io - File
- Java.io - DataOutputStream
- Java.io - DataInputStream
- Java.io - Console
- Java.io - CharArrayWriter
- Java.io - CharArrayReader
- Java.io - ByteArrayOutputStream
- Java.io - ByteArrayInputStream
- Java.io - BufferedWriter
- Java.io - BufferedReader
- Java.io - BufferedOutputStream
- Java.io - BufferedInputStream
- Java.io - Home
Java.io package extras
Java.io package Useful Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Java.io.PipedOutputStream Class
Introduction
The Java.io.PipedOutputStream class is a piped output stream that can be connected to a piped input stream to create a communications pipe.Following are the important points about PipedOutputStream −
The piped output stream is the sending end of the pipe.
Attempting to use both objects from a single thread is not recommended as it may deadlock the thread.
Data is written to a PipedOutputStream object by one thread and data is read from the connected PipedInputStream by some other thread.
The pipe is said to be broken if a thread that was reading data bytes from the connected piped input stream is no longer apve.
Class declaration
Following is the declaration for Java.io.PipedOutputStream class −
pubpc class PipedOutputStream extends OutputStream
Class constructors
Sr.No. | Constructor & Description |
---|---|
1 | PipedOutputStream() This creates a piped output stream that is not yet connected to a piped input stream. |
2 | PipedOutputStream(PipedInputStream snk) This creates a piped output stream connected to the specified piped input stream. |
Class methods
Sr.No. | Method & Description |
---|---|
1 | This method closes this piped output stream and releases any system resources associated with this stream. |
2 | This method connects this piped output stream to a receiver. |
3 | This method flushes this output stream and forces any buffered output bytes to be written out. |
4 | This method writes len bytes from the specified byte array starting at offset off to this piped output stream. |
5 | This method writes the specified byte to the piped output stream. |
Methods inherited
This class inherits methods from the following classes −
Java.io.OutputStream
Java.io.Object