コード例 #1
0
 public virtual void DeCompress()
 {
     if (Compressable && (_unCompressedStream == null) && (this.Data != null))
     {
         this._unCompressedStream = null;
         try {
             _unCompressedStream = CompressionWorker.DeCompress(StreamWrapper.Stream, Compression);
             _streamWrapper.Clear();
             _streamWrapper = null;
             _unCompressedStream.Position = 0;
         } catch (Exception e) {
             _unCompressedStream = null;
             Trace.TraceError("StreamThing.DeCompress Error {0}", e.Message);
         }
     }
 }
コード例 #2
0
 public virtual void ClearRealSubject(bool clean)
 {
     if (clean)
     {
         if ((_unCompressedStream != null) && (Compressable))
         {
             _unCompressedStream.Close();
         }
     }
     _unCompressedStream = null;
     if (!State.Hollow && (_streamWrapper != null))
     {
         if (StreamWrapper.State.Dirty)
         {
             Flush();
         }
         StreamWrapper.Stream = null;
         _streamWrapper       = null;
     }
 }