- 103 _write(b, off, len);
- 104 }
- 105
- 106 /**
- 107 * {@link #write(byte[])} without the close check.
- 108 */
- 109 private synchronized void _write(byte[] b, int off, int len) throws IOException {
- 110 if(channel==null) {
- 111 if(tmp==null)
- 112 tmp = new ByteArrayOutputStream();
- 113 tmp.write(b,off,len);
- 114 } else {
- 115 while (len>0) {
- 116 int sendable;
- 117 try {
- 118 sendable = Math.min(window.get(),len);