示例#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
 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;
 }