/** Forces any buffered output to be written. */ public void flush() throws IOException { flushBuffer(buffer, bufferPosition); bufferStart += bufferPosition; bufferPosition = 0; }
@Override public void flush() throws IOException { flushBuffer(buffer, bufferPosition); bufferStart += bufferPosition; bufferPosition = 0; }
/** Expert: implements buffer write. Writes bytes at the current position in * the output. * @param b the bytes to write * @param len the number of bytes to write */ private void flushBuffer(byte[] b, int len) throws IOException { flushBuffer(b, 0, len); }
/** Forces any buffered output to be written. */ public void flush() throws IOException { flushBuffer(buffer, bufferPosition); bufferStart += bufferPosition; bufferPosition = 0; }
/** Expert: implements buffer write. Writes bytes at the current position in * the output. * @param b the bytes to write * @param len the number of bytes to write */ private void flushBuffer(byte[] b, int len) throws IOException { flushBuffer(b, 0, len); }
/** Expert: implements buffer write. Writes bytes at the current position in * the output. * @param b the bytes to write * @param len the number of bytes to write */ private void flushBuffer(byte[] b, int len) throws IOException { flushBuffer(b, 0, len); }
@Override protected void flushBuffer(byte[] b, int offset, int len) throws IOException { rateLimiter.pause(len); if (bufferedDelegate != null) { bufferedDelegate.flushBuffer(b, offset, len); } else { delegate.writeBytes(b, offset, len); } }
flush(); flushBuffer(b, offset, length); bufferStart += length; } else {
flush(); flushBuffer(b, offset, length); bufferStart += length; } else {
flush(); flushBuffer(b, offset, length); bufferStart += length; } else {