class PseudoTcpSocketImpl.PseudoTcpOutputStream extends OutputStream
Constructor and Description |
---|
PseudoTcpOutputStream() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
flush()
This method block until all buffered data has been written
|
void |
write(byte[] bytes) |
void |
write(byte[] buffer,
int offset,
int length)
This method blocks until all data has been written.
|
void |
write(int b) |
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] bytes) throws IOException
write
in class OutputStream
IOException
public void write(byte[] buffer, int offset, int length) throws IOException
write
in class OutputStream
buffer
- source bufferoffset
- source buffer's offsetlength
- byte count to be writtenIOException
- in case of error or if timeout occurspublic void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
- in case of error or if timeout occurspublic void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class OutputStream
IOException
Copyright © 2018. All rights reserved.