Class AsynchronousFileChannel
public class AsynchronousFileChannel : AsynchronousChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition, IAsynchronousChannel, IChannel, ICloseable, IAutoCloseable
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AutoCloseable>AsynchronousFileChannel
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AutoCloseable>.SExecuteWithSignature(Type, IJavaType, string, string, params object[])JVMBridgeBase<AutoCloseable>.SExecute<TReturn, TConverter>(Type, IJavaType, string, params object[])JVMBridgeBase<AutoCloseable>.IsAssignableFrom(IJavaType)JVMBridgeBase<AutoCloseable>.IsAssignableFrom<T>()JVMBridgeBase<AutoCloseable>.Execute<T>(params T[])JVMBridgeBase<AutoCloseable>.DynBridgeClazzJVMBridgeBase<AutoCloseable>.BridgeClazzJVMBridgeBase.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.IExecuteWithSignature<TNewClass, TReturn, TConverter>(string, string, params object[])JVMBridgeBase.DynBridgeInstanceJVMBridgeBase.BridgeInstanceJVMBridgeBase.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
https://www.jcobridge.com/api-clr/html/P_MASES_JCOBridge_C2JBridge_JVMBridgeBase_BridgeClassName.htm
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
public override bool IsBridgeStatic { get; }
Property Value
Methods
Force(bool)
public void Force(bool arg0)
Parameters
Exceptions
Lock()
public Future<FileLock> Lock()
Returns
Lock(long, long, bool)
public Future<FileLock> Lock(long arg0, long arg1, bool arg2)
Parameters
Returns
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
longarg1
longarg2
boolarg3
AA
arg4
CompletionHandler<FileLock, Arg4objectSuperA>
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
AA
arg1
CompletionHandler<FileLock, Arg1objectSuperA>
Type Parameters
A
Arg1objectSuperA
A
Open(Path, params OpenOption[])
public static AsynchronousFileChannel Open(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
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
Patharg1
Set<Arg1ExtendsJava_Nio_File_OpenOption>arg2
ExecutorServicearg3
FileAttribute<object>[]
Returns
Type Parameters
Arg1ExtendsJava_Nio_File_OpenOption
Exceptions
Read(ByteBuffer, long)
public Future<Integer> Read(ByteBuffer arg0, long arg1)
Parameters
arg0
ByteBufferarg1
long
Returns
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
ByteBufferarg1
longarg2
AA
arg3
CompletionHandler<Integer, Arg3objectSuperA>
Type Parameters
A
Arg3objectSuperA
A
Size()
public long Size()
Returns
Exceptions
Truncate(long)
public AsynchronousFileChannel Truncate(long arg0)
Parameters
Returns
Exceptions
TryLock()
public FileLock TryLock()
Returns
Exceptions
TryLock(long, long, bool)
public FileLock TryLock(long arg0, long arg1, bool arg2)
Parameters
Returns
Exceptions
Write(ByteBuffer, long)
public Future<Integer> Write(ByteBuffer arg0, long arg1)
Parameters
arg0
ByteBufferarg1
long
Returns
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
ByteBufferarg1
longarg2
AA
arg3
CompletionHandler<Integer, Arg3objectSuperA>
Type Parameters
A
Arg3objectSuperA
A