예제 #1
0
 protected internal FileLock(FileChannel sourceChannel, long pos, long length, bool isShared)
 {
     if (pos < 0 || length < 0)
         throw new java.lang.IllegalArgumentException ("Lock pos=" + pos + ", length=" + length + " need to be greater than null.");
     this.fileChannel = sourceChannel;
     this.positionJ = pos;
     this.sizeJ = length;
     this.shared = isShared;
 }
예제 #2
0
파일: FileLock.cs 프로젝트: minam365/JavApi
 protected internal FileLock(FileChannel sourceChannel, long pos, long length, bool isShared)
 {
     if (pos < 0 || length < 0)
     {
         throw new java.lang.IllegalArgumentException("Lock pos=" + pos + ", length=" + length + " need to be greater than null.");
     }
     this.fileChannel = sourceChannel;
     this.positionJ   = pos;
     this.sizeJ       = length;
     this.shared      = isShared;
 }