6
internal class FileOutputStream : OutputStream
8
public FileOutputStream (FilePath file): this (file.GetPath (), false)
12
public FileOutputStream (string file): this (file, false)
16
public FileOutputStream (FilePath file, bool append) : this(file.GetPath (), append)
20
public FileOutputStream (string file, bool append)
24
base.Wrapped = File.Open (file, System.IO.FileMode.Append, FileAccess.Write);
26
base.Wrapped = File.Open (file, System.IO.FileMode.Create, FileAccess.Write);
28
} catch (DirectoryNotFoundException) {
29
throw new FileNotFoundException ("File not found: " + file);
33
public FileChannel GetChannel ()
35
return new FileChannel ((FileStream)base.Wrapped);