HTTPClient
Class HTTPConnection.MSLargeWritesBugStream

java.lang.Object
java.io.OutputStream
java.io.FilterOutputStream
HTTPClient.HTTPConnection.MSLargeWritesBugStream
- Enclosing class:
- HTTPConnection
- private class HTTPConnection.MSLargeWritesBugStream
- extends java.io.FilterOutputStream
M$ has yet another bug in their WinSock: if you try to write too much
data at once it'll hang itself. This filter therefore splits big writes
up into multiple writes of at most 20K.
|
Method Summary |
void |
write(byte[] b,
int off,
int len)
This method calls the write(int) method len
times for all bytes from the array buf starting at index
offset. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHUNK_SIZE
private final int CHUNK_SIZE
- See Also:
- Constant Field Values
HTTPConnection.MSLargeWritesBugStream
HTTPConnection.MSLargeWritesBugStream(java.io.OutputStream os)
write
public void write(byte[] b,
int off,
int len)
throws java.io.IOException
- Description copied from class:
java.io.FilterOutputStream
- This method calls the
write(int) method len
times for all bytes from the array buf starting at index
offset. Subclasses should overwrite this method to get a
more efficient implementation.