code: public void writeTo(OutputStream out) throws IOException
      {
          int sz=size();
  
          if (sz<=AJP13ResponsePacket.__MAX_BUF)
              super.writeTo(out);
          else
          {
              int offset=preReserve();
              int data=sz-AJP13ResponsePacket.__DATA_HDR;
  
              while (data>AJP13ResponsePacket.__MAX_DATA)
              {
                  _packet.setDataSize(AJP13ResponsePacket.__MAX_BUF-AJP13ResponsePacket.__HDR_SIZE);
                  if (offset>0)
                      System.arraycopy(_buf,0,_buf,offset,AJP13ResponsePacket.__DATA_HDR);
                  out.write(_buf,offset,AJP13ResponsePacket.__MAX_BUF);
  
                  data-=AJP13ResponsePacket.__MAX_DATA;
                  offset+=AJP13ResponsePacket.__MAX_DATA;
              }
  
              int len=data+AJP13ResponsePacket.__DATA_HDR;
              _packet.setDataSize(len-AJP13ResponsePacket.__HDR_SIZE);
              if (offset>0)
                  System.arraycopy(_buf,0,_buf,offset,AJP13ResponsePacket.__DATA_HDR);
              out.write(_buf,offset,len);
          }
      }
docs: /* ------------------------------------------------------------