/// <summary>
        /// 
        /// </summary>
        /// <param name="path"></param>
        /// <param name="access"></param>
        /// <returns></returns>
        internal static FileVirtualStream OpenFile( string path, FileAccess access )
        {
            FileVirtualStream fileVirtualStream = null;

            try
            {
                FileStream fileStream = File.Open( path, FileMode.Open, access );
                if ( fileVirtualStream != null )
                    fileVirtualStream = new FileVirtualStream( fileStream );
            }
            catch
            {
            }

            return fileVirtualStream;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        internal static FileVirtualStream CreateFile(string path)
        {
            FileVirtualStream fileVirtualStream = null;

            try
            {
                FileStream fileStream = File.Open(path, FileMode.CreateNew, FileAccess.ReadWrite);
                if (fileVirtualStream != null)
                {
                    fileVirtualStream = new FileVirtualStream(fileStream);
                }
            }
            catch
            {
            }

            return(fileVirtualStream);
        }
Ejemplo n.º 3
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="path"></param>
        /// <param name="access"></param>
        /// <returns></returns>
        internal static FileVirtualStream OpenFile(string path, FileAccess access)
        {
            FileVirtualStream fileVirtualStream = null;

            try
            {
                FileStream fileStream = File.Open(path, FileMode.Open, access);
                if (fileVirtualStream != null)
                {
                    fileVirtualStream = new FileVirtualStream(fileStream);
                }
            }
            catch
            {
            }

            return(fileVirtualStream);
        }
        /// <summary>
        /// 
        /// </summary>
        /// <param name="path"></param>
        /// <returns></returns>
        internal static FileVirtualStream CreateFile( string path )
        {
            FileVirtualStream fileVirtualStream = null;

            try
            {
                FileStream fileStream = File.Open( path, FileMode.CreateNew, FileAccess.ReadWrite );
                if ( fileVirtualStream != null )
                    fileVirtualStream = new FileVirtualStream( fileStream );
            }
            catch
            {
            }

            return fileVirtualStream;
        }
Ejemplo n.º 5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strFileName"></param>
 /// <returns></returns>
 public VirtualStream CreateFile(string strFileName)
 {
     return(FileVirtualStream.CreateFile(m_PackageName + strFileName));
 }
Ejemplo n.º 6
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="strFileName"></param>
 /// <param name="fileAccess"></param>
 /// <returns></returns>
 public VirtualStream OpenFile(string strFileName, FileAccess fileAccess)
 {
     return(FileVirtualStream.OpenFile(m_PackageName + strFileName, fileAccess));
 }