|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.InputStream
client.ClientInputStream
final class ClientInputStream
InputStream used by user (application) to receive (anonymized) data via the mix cascade. Abstracts from the underlying technique.
| Field Summary | |
|---|---|
private Client |
client
Reference on the Client using this Stream. |
private boolean |
isClosed
Indicates whether this InputStream is ready to use or not. |
| Constructor Summary | |
|---|---|
protected |
ClientInputStream(Client client)
Generates a new InputStream that can be used to receive
(anonymized) data via the mix cascade. |
| Method Summary | |
|---|---|
void |
close()
Closes this InputStream. |
int |
read()
Reads a byte of data from this InputStream. |
int |
read(byte[] b)
Reads up to b.length bytes of data from this
InputStream. |
int |
read(byte[] b,
int off,
int len)
Reads up to len bytes of data from this
InputStream. |
long |
skip(long n)
Skips over and discards n bytes of data from this
InputStream. |
| Methods inherited from class java.io.InputStream |
|---|
available, mark, markSupported, reset |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private boolean isClosed
InputStream is ready to use or not.
private Client client
Client using this Stream.
| Constructor Detail |
|---|
protected ClientInputStream(Client client)
InputStream that can be used to receive
(anonymized) data via the mix cascade.
client - Reference on the Client using this
Stream.| Method Detail |
|---|
public int read()
throws java.io.IOException
InputStream.
read in class java.io.InputStreamEOF or this
InputStream was already closed.
java.io.IOException - If an I/O error occurs.
public int read(byte[] b)
throws java.io.IOException
b.length bytes of data from this
InputStream. Blocks until input is available.
read in class java.io.InputStreamb - Buffer to read data to.
EOF or
InputStream closed).
java.io.IOException - If an I/O error occurs.
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes of data from this
InputStream. If len is not zero, the method
blocks until some input is available; otherwise, no bytes are read and 0
is returned.
read in class java.io.InputStreamb - Buffer to read data to.off - Start offset in the destination array b.len - Maximum number of bytes to be read.
EOF or
InputStream closed).
java.io.IOException - If an I/O error occurs.
public long skip(long n)
throws java.io.IOException
n bytes of data from this
InputStream.
skip in class java.io.InputStreamn - Number of bytes to be skipped over.
java.io.IOException - If an I/O error occurs.
public void close()
throws java.io.IOException
InputStream.
close in interface java.io.Closeableclose in class java.io.InputStreamjava.io.IOException - If an I/O error occurs.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||