Table of Contents

Class AsynchronousFileChannel

Namespace
Java.Nio.Channels
Assembly
MASES.JNet.dll
public class AsynchronousFileChannel : AsynchronousChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAsynchronousChannel, IChannel, ICloseable, IAutoCloseable
Inheritance
JVMBridgeBase
JVMBridgeBase<AutoCloseable>
AsynchronousFileChannel
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()
JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])
JVMBridgeBase<AutoCloseable>.DynBridgeClazz
JVMBridgeBase<AutoCloseable>.BridgeClazz
JVMBridgeBase.RuntimeClassNameOf<T>()
JVMBridgeBase.ClassNameOf<T>()
JVMBridgeBase.ClassOf<T>()
JVMBridgeBase.WrapsDirect<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn>(IJavaObject)
JVMBridgeBase.Wraps<TNewClass, TReturn, TConverter>(IJavaObject)
JVMBridgeBase.MonitorEnter()
JVMBridgeBase.MonitorExit()
JVMBridgeBase.IsInstanceOf(IJavaType)
JVMBridgeBase.IsInstanceOf<T>()
JVMBridgeBase.RuntimeIsInstanceOf<T>()
JVMBridgeBase.CastTo<TNewClass>()
JVMBridgeBase.CastDirect<TNewClass>()
JVMBridgeBase.Dispose()
JVMBridgeBase.ToString()
JVMBridgeBase.GetHashCode()
JVMBridgeBase.Notify()
JVMBridgeBase.NotifyAll()
JVMBridgeBase.Wait()
JVMBridgeBase.DynBridgeInstance
JVMBridgeBase.BridgeInstance
JVMBridgeBase.IsBridgeListener
Extension Methods

Constructors

AsynchronousFileChannel()

Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge

[Obsolete("AsynchronousFileChannel class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AsynchronousFileChannel()

AsynchronousFileChannel(params object[])

Generic constructor: it is useful for JCOBridge when there is a derived class which needs to pass arguments to the highest JVMBridgeBase class

[Obsolete("AsynchronousFileChannel class represents, in .NET, an instance of a JVM interface or abstract class. This public initializer is needed for JCOBridge internal use, other uses can produce unidentible behaviors.")]
public AsynchronousFileChannel(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

IsBridgeAbstract

public override bool IsBridgeAbstract { get; }

Property Value

bool

IsBridgeCloseable

public override bool IsBridgeCloseable { get; }

Property Value

bool

IsBridgeInterface

public override bool IsBridgeInterface { get; }

Property Value

bool

IsBridgeStatic

public override bool IsBridgeStatic { get; }

Property Value

bool

Methods

Force(bool)

public void Force(bool arg0)

Parameters

arg0 bool

bool

Exceptions

IOException

Lock()

public Future<FileLock> Lock()

Returns

Future<FileLock>

Future

Lock(long, long, bool)

public Future<FileLock> Lock(long arg0, long arg1, bool arg2)

Parameters

arg0 long

long

arg1 long

long

arg2 bool

bool

Returns

Future<FileLock>

Future

Lock<A, Arg4objectSuperA>(long, long, bool, A, CompletionHandler<FileLock, Arg4objectSuperA>)

public void Lock<A, Arg4objectSuperA>(long arg0, long arg1, bool arg2, A arg3, CompletionHandler<FileLock, Arg4objectSuperA> arg4) where Arg4objectSuperA : A

Parameters

arg0 long

long

arg1 long

long

arg2 bool

bool

arg3 A

A

arg4 CompletionHandler<FileLock, Arg4objectSuperA>

CompletionHandler

Type Parameters

A
Arg4objectSuperA

A

Lock<A, Arg1objectSuperA>(A, CompletionHandler<FileLock, Arg1objectSuperA>)

public void Lock<A, Arg1objectSuperA>(A arg0, CompletionHandler<FileLock, Arg1objectSuperA> arg1) where Arg1objectSuperA : A

Parameters

arg0 A

A

arg1 CompletionHandler<FileLock, Arg1objectSuperA>

CompletionHandler

Type Parameters

A
Arg1objectSuperA

A

Open(Path, params OpenOption[])

public static AsynchronousFileChannel Open(Path arg0, params OpenOption[] arg1)

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

AsynchronousFileChannel

AsynchronousFileChannel

Exceptions

IOException

Open<Arg1ExtendsJava_Nio_File_OpenOption>(Path, Set<Arg1ExtendsJava_Nio_File_OpenOption>, ExecutorService, params FileAttribute<object>[])

public static AsynchronousFileChannel Open<Arg1ExtendsJava_Nio_File_OpenOption>(Path arg0, Set<Arg1ExtendsJava_Nio_File_OpenOption> arg1, ExecutorService arg2, params FileAttribute<object>[] arg3) where Arg1ExtendsJava_Nio_File_OpenOption : OpenOption

Parameters

arg0 Path

Path

arg1 Set<Arg1ExtendsJava_Nio_File_OpenOption>

Set

arg2 ExecutorService

ExecutorService

arg3 FileAttribute<object>[]

FileAttribute

Returns

AsynchronousFileChannel

AsynchronousFileChannel

Type Parameters

Arg1ExtendsJava_Nio_File_OpenOption

OpenOption

Exceptions

IOException

Read(ByteBuffer, long)

public Future<Integer> Read(ByteBuffer arg0, long arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

Returns

Future<Integer>

Future

Read<A, Arg3objectSuperA>(ByteBuffer, long, A, CompletionHandler<Integer, Arg3objectSuperA>)

public void Read<A, Arg3objectSuperA>(ByteBuffer arg0, long arg1, A arg2, CompletionHandler<Integer, Arg3objectSuperA> arg3) where Arg3objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

arg2 A

A

arg3 CompletionHandler<Integer, Arg3objectSuperA>

CompletionHandler

Type Parameters

A
Arg3objectSuperA

A

Size()

public long Size()

Returns

long

long

Exceptions

IOException

Truncate(long)

public AsynchronousFileChannel Truncate(long arg0)

Parameters

arg0 long

long

Returns

AsynchronousFileChannel

AsynchronousFileChannel

Exceptions

IOException

TryLock()

public FileLock TryLock()

Returns

FileLock

FileLock

Exceptions

IOException

TryLock(long, long, bool)

public FileLock TryLock(long arg0, long arg1, bool arg2)

Parameters

arg0 long

long

arg1 long

long

arg2 bool

bool

Returns

FileLock

FileLock

Exceptions

IOException

Write(ByteBuffer, long)

public Future<Integer> Write(ByteBuffer arg0, long arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

Returns

Future<Integer>

Future

Write<A, Arg3objectSuperA>(ByteBuffer, long, A, CompletionHandler<Integer, Arg3objectSuperA>)

public void Write<A, Arg3objectSuperA>(ByteBuffer arg0, long arg1, A arg2, CompletionHandler<Integer, Arg3objectSuperA> arg3) where Arg3objectSuperA : A

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

arg2 A

A

arg3 CompletionHandler<Integer, Arg3objectSuperA>

CompletionHandler

Type Parameters

A
Arg3objectSuperA

A