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; }
public void Close() { if (_nonResident) { _partitionStream.Close(); } else { _residentStream.Close(); } }
public void Close() { _stream.Close(); }
public static bool IsPicture(IDataStream stream) { stream.Open(); bool res = IsJpeg(stream) || IsPng(stream) || IsBmp(stream) || IsGif(stream) || IsTif(stream); stream.Close(); return res; }
public override void Close() { _stream.Close(); }