public class DynamicPipe extends OutputStream
PipedInputStream
/ PipedOutputStream
combo,
but with an unlimited buffer capacity.Modifier and Type | Class and Description |
---|---|
class |
DynamicPipe.PipeInputStream
The output end of the pipe.
|
Modifier and Type | Field and Description |
---|---|
static int |
BUFFER_SIZE |
Constructor and Description |
---|
DynamicPipe()
Create a dynamic pipe.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
InputStream |
getReadEnd() |
void |
propagateException(IOException ioException)
Propagates an IOException to the reading site.
|
void |
write(byte[] b,
int off,
int len) |
void |
write(int b) |
flush, write
public static final int BUFFER_SIZE
public DynamicPipe()
OutputStream
) itself. Use
getReadEnd()
to retrieve the output side.public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
IOException
public InputStream getReadEnd()
InputStream
) of the pipe.public void propagateException(IOException ioException) throws IOException
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2017 levigo holding gmbh. All rights reserved.