code: public void setChunking()
      {
          checkOutput();
          if (_bufferedOut instanceof ChunkingOutputStream)
              ((ChunkingOutputStream)_bufferedOut).setChunking(true);
          else
              throw new IllegalStateException(_bufferedOut.getClass().toString());
      }
docs: Set chunking mode.