public bool CanView(IDataStream stream)
 {
     stream.Open();
     bool res = stream.StreamLength < 100 * 1024 // Don't bother with files over 100K
         && IsHtml(stream);
     stream.Close();
     return res;
 }
Exemple #2
0
 public void Close()
 {
     if (_nonResident)
     {
         _partitionStream.Close();
     }
     else
     {
         _residentStream.Close();
     }
 }
Exemple #3
0
 public void Close()
 {
     _stream.Close();
 }
Exemple #4
0
 public static bool IsPicture(IDataStream stream)
 {
     stream.Open();
     bool res = IsJpeg(stream) || IsPng(stream) || IsBmp(stream) || IsGif(stream) || IsTif(stream);
     stream.Close();
     return res;
 }
Exemple #5
0
 public override void Close()
 {
     _stream.Close();
 }