Class FileChannel
public class FileChannel : AbstractInterruptibleChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
JVMBridgeBaseJVMBridgeBase<AbstractInterruptibleChannel>FileChannel
- Implements
-
IJVMBridgeCoreIJVMBridgeBaseStaticIJVMBridgeBaseIJVMBridgeDefinition
- Inherited Members
-
JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom(IJavaType)JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom<T>()JVMBridgeBase<AbstractInterruptibleChannel>.Execute<T>(params T[])JVMBridgeBase<AbstractInterruptibleChannel>.DynBridgeClazzJVMBridgeBase<AbstractInterruptibleChannel>.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
FileChannel()
Default constructor: even if the corresponding Java class does not have one, it is mandatory for JCOBridge
[Obsolete("FileChannel 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 FileChannel()
FileChannel(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("FileChannel 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 FileChannel(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 FileLock Lock()
Returns
Exceptions
Lock(long, long, bool)
public FileLock Lock(long arg0, long arg1, bool arg2)
Parameters
Returns
Exceptions
Map(MapMode, long, long)
public MappedByteBuffer Map(FileChannel.MapMode arg0, long arg1, long arg2)
Parameters
arg0
FileChannel.MapModearg1
longarg2
long
Returns
Exceptions
Open(Path, params OpenOption[])
public static FileChannel Open(Path arg0, params OpenOption[] arg1)
Parameters
arg0
Patharg1
OpenOption[]
Returns
Exceptions
Open<Arg1ExtendsJava_Nio_File_OpenOption>(Path, Set<Arg1ExtendsJava_Nio_File_OpenOption>, params FileAttribute<object>[])
public static FileChannel Open<Arg1ExtendsJava_Nio_File_OpenOption>(Path arg0, Set<Arg1ExtendsJava_Nio_File_OpenOption> arg1, params FileAttribute<object>[] arg2) where Arg1ExtendsJava_Nio_File_OpenOption : OpenOption
Parameters
arg0
Patharg1
Set<Arg1ExtendsJava_Nio_File_OpenOption>arg2
FileAttribute<object>[]
Returns
Type Parameters
Arg1ExtendsJava_Nio_File_OpenOption
Exceptions
Position()
public long Position()
Returns
Exceptions
Position(long)
public SeekableByteChannel Position(long arg0)
Parameters
Returns
Exceptions
Read(ByteBuffer)
public int Read(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
Exceptions
Read(ByteBuffer, long)
public int Read(ByteBuffer arg0, long arg1)
Parameters
arg0
ByteBufferarg1
long
Returns
Exceptions
Read(ByteBuffer[])
public long Read(ByteBuffer[] arg0)
Parameters
arg0
ByteBuffer[]
Returns
Exceptions
Read(ByteBuffer[], int, int)
public long Read(ByteBuffer[] arg0, int arg1, int arg2)
Parameters
arg0
ByteBuffer[]arg1
intarg2
int
Returns
Exceptions
Size()
public long Size()
Returns
Exceptions
TransferFrom(ReadableByteChannel, long, long)
public long TransferFrom(ReadableByteChannel arg0, long arg1, long arg2)
Parameters
arg0
ReadableByteChannelarg1
longarg2
long
Returns
Exceptions
TransferTo(long, long, WritableByteChannel)
public long TransferTo(long arg0, long arg1, WritableByteChannel arg2)
Parameters
arg0
longarg1
longarg2
WritableByteChannel
Returns
Exceptions
Truncate(long)
public SeekableByteChannel 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)
public int Write(ByteBuffer arg0)
Parameters
arg0
ByteBuffer
Returns
Exceptions
Write(ByteBuffer, long)
public int Write(ByteBuffer arg0, long arg1)
Parameters
arg0
ByteBufferarg1
long
Returns
Exceptions
Write(ByteBuffer[])
public long Write(ByteBuffer[] arg0)
Parameters
arg0
ByteBuffer[]
Returns
Exceptions
Write(ByteBuffer[], int, int)
public long Write(ByteBuffer[] arg0, int arg1, int arg2)
Parameters
arg0
ByteBuffer[]arg1
intarg2
int
Returns
Exceptions
Operators
implicit operator GatheringByteChannel(FileChannel)
Converter from FileChannel to GatheringByteChannel
public static implicit operator GatheringByteChannel(FileChannel t)
Parameters
Returns
implicit operator ScatteringByteChannel(FileChannel)
Converter from FileChannel to ScatteringByteChannel
public static implicit operator ScatteringByteChannel(FileChannel t)
Parameters
Returns
implicit operator SeekableByteChannel(FileChannel)
Converter from FileChannel to SeekableByteChannel
public static implicit operator SeekableByteChannel(FileChannel t)