/** * Flushes the internal buffer. * * @throws IOException if an error occurs */ private void flushBuffer() throws IOException { if (count > 0) { raos.write(buffer, 0, count); count = 0; } }
@Override public void write(int b) throws IOException { raos.write(b); }
@Override public void write(byte b[], int off, int len) throws IOException { raos.write(b, off, len); }
@Override public void write(byte b[]) throws IOException { raos.write(b); }
raos.write(b, off, len); return;
nbBytes = (int)(remaining<bufferSize?remaining:bufferSize); rais.readFully(buffer, 0, nbBytes); raos.write(buffer, 0, nbBytes); remaining -= nbBytes;