blob: 25c5e06e07e5d2c6e55c2c9d4aa0061525668b0c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
using System.IO;
namespace SharpCifs.Util.Sharpen
{
public class FileInputStream : InputStream
{
public FileInputStream (FilePath file) : this(file.GetPath ())
{
}
public FileInputStream (string file)
{
if (!File.Exists (file)) {
throw new FileNotFoundException ("File not found", file);
}
Wrapped = new FileStream (file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
}
}
}
|