Esempio n. 1
0
        /// <exclude />
        public Stream GetNewWriteStream(IFile file)
        {
            IFileEmptyDataClassBase castedFile = (IFileEmptyDataClassBase)file;

            castedFile.CurrentWriteStream = new CachedMemoryStream();

            return(castedFile.CurrentWriteStream);
        }
Esempio n. 2
0
        /// <exclude />
        public Stream GetReadStream(IFile file)
        {
            IFileEmptyDataClassBase castedFile = (IFileEmptyDataClassBase)file;

            if (castedFile.CurrentWriteStream == null)
            {
                return(new MemoryStream(new byte[] { }));
            }
            else
            {
                return(new MemoryStream(castedFile.CurrentWriteStream.Data));
            }
        }