Class java.io.PipedWriter
java.lang.Object
|
+----java.io.Writer
|
+----java.io.PipedWriter
- public class PipedWriter
- extends Writer
Piped character-output streams.
- Since:
- JDK1.1
Constructor Summary
|
PipedWriter()
Create a writer that is not yet connected to a piped reader.
|
PipedWriter(PipedReader sink)
Create a writer for the specified piped character-input stream.
|
Method Summary
|
void
|
close()
Close the stream.
|
void
|
connect(PipedReader sink)
Connect the specified piped reader to this writer.
|
void
|
flush()
Flush the stream.
|
void
|
write(char[] cbuf,
int off,
int len)
Write a portion of an array of characters.
|
Methods inherited from class java.lang.Object
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PipedWriter
public PipedWriter()
- Create a writer that is not yet connected to a piped reader.
PipedWriter
public PipedWriter(PipedReader sink) throws IOException
- Create a writer for the specified piped character-input stream.
connect
public void connect(PipedReader sink) throws IOException
- Connect the specified piped reader to this writer.
write
public void write(char[] cbuf,
int off,
int len) throws IOException
- Write a portion of an array of characters.
- Parameters:
cbuf
- Array of characters
off
- Offset from which to start writing characters
len
- Number of characters to write
- Throws:
- IOException - If an I/O error occurs
- Overrides:
- write in class Writer
flush
public void flush() throws IOException
- Flush the stream.
- Throws:
- IOException - If an I/O error occurs
- Overrides:
- flush in class Writer
close
public void close() throws IOException
- Close the stream.
- Throws:
- IOException - If an I/O error occurs
- Overrides:
- close in class Writer
Submit a bug or feature
Submit comments/suggestions about new javadoc look.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1998 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.