D
Daniel
Does anyone know if there's a way to determine how many bytes actually
were written to the underlying stream?
As you may know, OutputStream.write doesn't return an int, but is
declared void. Especially for Sockets, it would be interesting to see
how many bytes actully were written. I know that's in the hands of the
underlying TCP implementation and other buffers, but can I be certain
that when the thread returns from OutputStream.write(), that the data
was or will be written to the socket if no exceptions are thrown after
flushing the stream?
Thanks,
Daniel.
were written to the underlying stream?
As you may know, OutputStream.write doesn't return an int, but is
declared void. Especially for Sockets, it would be interesting to see
how many bytes actully were written. I know that's in the hands of the
underlying TCP implementation and other buffers, but can I be certain
that when the thread returns from OutputStream.write(), that the data
was or will be written to the socket if no exceptions are thrown after
flushing the stream?
Thanks,
Daniel.