Update to newer version of CSJ2K from github.com/cureos/csj2k with modification
This commit is contained in:
30
CSJ2K/Util/StoreFileStreamCreator.cs
Normal file
30
CSJ2K/Util/StoreFileStreamCreator.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
// Copyright (c) 2007-2016 CSJ2K contributors.
|
||||
// Licensed under the BSD 3-Clause License.
|
||||
|
||||
namespace CSJ2K.Util
|
||||
{
|
||||
using System.IO;
|
||||
|
||||
public class StoreFileStreamCreator : IFileStreamCreator
|
||||
{
|
||||
#region FIELDS
|
||||
|
||||
private static readonly IFileStreamCreator Instance = new StoreFileStreamCreator();
|
||||
|
||||
#endregion
|
||||
|
||||
#region METHODS
|
||||
|
||||
public static void Register()
|
||||
{
|
||||
FileStreamFactory.Register(Instance);
|
||||
}
|
||||
|
||||
public Stream Create(string path, string mode)
|
||||
{
|
||||
return new StoreFileStream(path, mode);
|
||||
}
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user