예제 #1
0
 public override void InternalWrite(byte b)
 {
     try
     {
         fileWriter.Write(b);
     }
     catch (System.IO.IOException e)
     {
         throw new NeoDatis.Odb.ODBRuntimeException(e, "Error while writing a byte");
     }
 }
예제 #2
0
 public virtual void TestOdbFileIo()
 {
     NeoDatis.Tool.Wrappers.IO.OdbFileIO fileIO = new NeoDatis.Tool.Wrappers.IO.OdbFileIO
                                                      (NeoDatis.Odb.Test.ODBTest.Directory + "testLock1", true, null);
     fileIO.Seek(1024);
     fileIO.Write((byte)10);
     fileIO.LockFile();
     AssertEquals(true, fileIO.IsLocked());
     fileIO.Close();
 }
예제 #3
0
		/// <summary>Simple lock</summary>
		/// <exception cref="System.IO.IOException">System.IO.IOException</exception>
		public virtual void TestOdbFileIo()
		{
			NeoDatis.Tool.Wrappers.IO.OdbFileIO fileIO = new NeoDatis.Tool.Wrappers.IO.OdbFileIO
				(NeoDatis.Odb.Test.ODBTest.Directory + "testLock1", true, null);
			fileIO.Seek(1024);
			fileIO.Write((byte)10);
			fileIO.LockFile();
			AssertEquals(true, fileIO.IsLocked());
			fileIO.Close();
		}