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; }
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; }