|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.io.OutputStream
client.ClientOutputStream
final class ClientOutputStream
OutputStream used by user (application) to send data anonymously via a 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 OutputStream is ready to use or not. |
| Constructor Summary | |
|---|---|
protected |
ClientOutputStream(Client client)
Generates a new OutputStream that can be used to send data
anonymously via a mix cascade. |
| Method Summary | |
|---|---|
void |
close()
Closes this OutputStream. |
void |
flush()
Has no effect (since internally, data must be written synchronously (request and reply alternately)). |
void |
write(byte[] b)
Writes b.length bytes from the specified array to this
OutputStream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified array starting at
off to this OutputStream. |
void |
write(int b)
Writes the specified byte to this OutputStream. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private Client client
Client using this Stream.
private boolean isClosed
OutputStream is ready to use or not.
| Constructor Detail |
|---|
protected ClientOutputStream(Client client)
OutputStream that can be used to send data
anonymously via a mix cascade.
client - Reference on the Client using this
Stream.| Method Detail |
|---|
public void close()
throws java.io.IOException
OutputStream.
close in interface java.io.Closeableclose in class java.io.OutputStreamjava.io.IOException - If an I/O error occurs.
public void write(byte[] b)
throws java.io.IOException
b.length bytes from the specified array to this
OutputStream.
write in class java.io.OutputStreamb - Data to be written.
java.io.IOException - If an I/O error occurs.
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
len bytes from the specified array starting at
off to this OutputStream.
write in class java.io.OutputStreamb - Array containing the data to be written.off - Start offset in b.len - Number of bytes to be written (starting at
off).
java.io.IOException - If an I/O error occurs.
public void write(int b)
throws java.io.IOException
OutputStream.
write in class java.io.OutputStreamb - The byte to be written.
java.io.IOException - If an I/O error occurs.
public void flush()
throws java.io.IOException
flush in interface java.io.Flushableflush in class java.io.OutputStreamjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||