示例#1
0
 public virtual void Flush()
 {
     if (_streamWrapper != null)
     {
         if (!StreamWrapper.State.Clean)
         {
             StreamWrapper.Flush();
             ContentContainer.Add(this.StreamWrapper.InnerData);
         }
     }
     else
     {
         if (Compressable)
         {
             Compress();
         }
         else if (_unCompressedStream != null)
         {
             StreamWrapper.Stream = _unCompressedStream;
         }
         StreamWrapper.Flush();
         ContentContainer.Add(this.StreamWrapper.InnerData);
     }
 }