Ejemplo n.º 1
0
		/// <summary>Creates a new, empty file in the directory with the given name.
		/// Returns a stream writing this file. 
		/// </summary>
		public override OutputStream CreateFile(System.String name)
		{
			RAMFile file = new RAMFile();
			files[name] = file;
			return new RAMOutputStream(file);
		}
Ejemplo n.º 2
0
		public RAMInputStream(RAMFile f)
		{
			file = f;
			length = file.length;
		}
Ejemplo n.º 3
0
        /// <summary>Returns the time the named file was last modified. </summary>
        public override long FileModified(System.String name)
        {
            RAMFile file = (RAMFile)files[name];

            return(file.lastModified);
        }
Ejemplo n.º 4
0
        /// <summary>Returns true iff the named file exists in this directory. </summary>
        public override bool FileExists(System.String name)
        {
            RAMFile file = (RAMFile)files[name];

            return(file != null);
        }
		internal RAMOutputStream(RAMFile f)
		{
			file = f;
		}
Ejemplo n.º 6
0
 internal RAMOutputStream(RAMFile f)
 {
     file = f;
 }