public class QueuedStream
extends java.lang.Object
OutputStream
[getOutputStream()
],
and delivers it to its InputStream
[getInputStream()
]Modifier and Type | Class and Description |
---|---|
protected class |
QueuedStream.QueuedInputStream |
protected class |
QueuedStream.QueuedOutputStream |
Constructor and Description |
---|
QueuedStream()
Creates a QueuedStream with the default buffersize of 1k. (1024 integer places)
|
QueuedStream(int len)
Creates a QueuedStream with a given buffer size
|
Modifier and Type | Method and Description |
---|---|
java.io.InputStream |
getInputStream() |
java.io.OutputStream |
getOutputStream() |
int |
read() |
boolean |
ready() |
void |
write(int b) |
public QueuedStream(int len)
len
- The buffer sizepublic QueuedStream()
public void write(int b) throws java.io.IOException
java.io.IOException
public int read() throws java.io.IOException
java.io.IOException
public boolean ready()
public java.io.InputStream getInputStream()
public java.io.OutputStream getOutputStream()