PipedWriter (Java SE 25 & JDK 25)
- All Implemented Interfaces:
Closeable, Flushable, Appendable, AutoCloseable
-
Field Summary
-
Constructor Summary
Constructors
Creates a piped writer that is not yet connected to a piped reader.
Creates a piped writer connected to the specified piped reader.
-
Method Summary
voidclose()Closes this piped output stream and releases any system resources associated with this stream.
voidConnects this piped writer to a receiver.
voidflush()Flushes this output stream and forces any buffered output characters to be written out.
voidwrite(char[] cbuf, int off, int len) Writes
lencharacters from the specified character array starting at offsetoffto this piped output stream.voidwrite(int c) Writes the specified
charto the piped output stream.
-
Constructor Details
-
PipedWriter
-
PipedWriter
-
-
Method Details
-
connect
-
write
-
write
-
flush
-
close
-