Method
writeBytes
(byte[] b, int off, int len)
Source from the content-addressed store, hash-verified
| 372 | |
| 373 | |
| 374 | private void writeBytes(byte[] b, int off, int len) throws IOException { |
| 375 | |
| 376 | if (closed) { |
| 377 | throw new IOException(sm.getString("outputBuffer.closed")); |
| 378 | } |
| 379 | |
| 380 | append(b, off, len); |
| 381 | updateBytesWritten(len); |
| 382 | |
| 383 | // if called from within flush(), then immediately flush |
| 384 | // remaining bytes |
| 385 | if (doFlush) { |
| 386 | flushByteBuffer(); |
| 387 | } |
| 388 | |
| 389 | } |
| 390 | |
| 391 | |
| 392 | private void writeBytes(ByteBuffer from) throws IOException { |