|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.norther.tammi.spray.remote.chain.HttpRMIOutputStream
public class HttpRMIOutputStream
An output stream for remote HTTP clients.
Constructor Summary | |
---|---|
HttpRMIOutputStream(HttpRMIClient rc)
Constructs a new remote output stream. |
|
HttpRMIOutputStream(HttpRMIClient rc,
int cap)
Constructs a new remote output stream with a specified capacity. |
Method Summary | |
---|---|
void |
close()
Closes the stream. |
void |
flush()
Flushes the buffer. |
void |
write(byte[] b)
Writes bytes. |
void |
write(byte[] b,
int off,
int len)
Writes specific bytes. |
void |
write(int i)
Writes a specific byte. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpRMIOutputStream(HttpRMIClient rc)
rc
- a remote client.public HttpRMIOutputStream(HttpRMIClient rc, int cap)
rc
- a remote client.cap
- a capacity.Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
- on errors.public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
- on errors.public void write(byte[] b) throws IOException
write
in class OutputStream
b
- an arrays of bytes.
IOException
- on error.public void write(byte[] b, int off, int len) throws IOException
write
in class OutputStream
b
- an arrays of bytes.off
- an offset.len
- length.
IOException
- on errors.public void write(int i) throws IOException
write
in class OutputStream
i
- a byte.
IOException
- on errors.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |