public interface Pipe
extends java.io.Closeable
read(byte[], int, int) produces exactly the bytes that were previously written.| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases any resources allocated for this pipe.
|
boolean |
isEmpty() |
boolean |
isFull() |
int |
read(byte[] buf,
int off,
int len) |
int |
write(byte[] buf,
int off,
int len) |
int read(byte[] buf,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionint write(byte[] buf,
int off,
int len)
throws java.io.IOException
java.io.IOExceptionvoid close()
throws java.io.IOException
read(byte[],
int, int) and write(byte[], int, int) are undefined.close in interface java.lang.AutoCloseableclose in interface java.io.Closeablejava.io.IOExceptionboolean isFull()
write(byte[], int, int) will return 0boolean isEmpty()
read(byte[], int, int) will return 0