예제 #1
0
 /**
  * Write a chunk of bytes.
  *
  * @param chunk The bytes to write
  * @throws IOException If an I/O error occurs during the write
  */
 public void doWrite(ByteChunk chunk) throws IOException {
   outputBuffer.doWrite(chunk);
   contentWritten += chunk.getLength();
 }
예제 #2
0
 /** Write a chunk of bytes. */
 public void doWrite(ByteChunk chunk /*byte buffer[], int pos, int count*/) throws IOException {
   outputBuffer.doWrite(chunk, this);
   bytesWritten += chunk.getLength();
 }