public class PipeOutputStream
extends java.io.OutputStream
It is equivalent to java.io.PipedOutputStream but it seems to be quite faster.
Constructor and Description |
---|
PipeOutputStream(Pipe pipe)
Creates a new PipeOutputStream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes this pipe stream.
|
void |
flush()
Flushes this output stream.
|
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream.
|
void |
write(byte[] buff,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream.
|
void |
write(int b)
Writes the specified byte to this output stream.
|
public PipeOutputStream(Pipe pipe)
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] buff, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.OutputStream
java.io.IOException