@Override
  public void write(byte []buf, int offset, int length, boolean isEnd)
    throws IOException
  {
    if (! _isPost) {
      return;
    }

    if (_tempStream == null) {
      _tempStream = new MemoryStream();
    }

    _tempStream.write(buf, offset, length, isEnd);
  }
@ Override public void write ( byte [ ] buf , int offset , int length , boolean isEnd ) throws IOException { if ( ! _isPost ) { return ; } if ( _tempStream == null ) { _tempStream = new MemoryStream ( ) ; } _tempStream . write ( buf , offset , length , isEnd ) ; }
Writes a buffer to the underlying stream.

@param buffer the byte array to write.
@param offset the offset into the byte array.
@param length the number of bytes to write.
@param isEnd true when the write is flushing a close.