Table of Contents

Class FileChannel

Namespace
Java.Nio.Channels
Assembly
MASES.JNet.dll
public class FileChannel : AbstractInterruptibleChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
Inheritance
JVMBridgeBase
FileChannel
Implements
IJVMBridgeCore
IJVMBridgeBaseStatic
IJVMBridgeBase
IJVMBridgeDefinition
Inherited Members
JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom(IJavaType)
JVMBridgeBase<AbstractInterruptibleChannel>.IsAssignableFrom<T>()
JVMBridgeBase<AbstractInterruptibleChannel>.Execute<T>(params T[])
JVMBridgeBase<AbstractInterruptibleChannel>.DynBridgeClazz
JVMBridgeBase<AbstractInterruptibleChannel>.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

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

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 FileLock Lock()

Returns

FileLock

FileLock

Exceptions

IOException

Lock(long, long, bool)

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

Parameters

arg0 long

long

arg1 long

long

arg2 bool

bool

Returns

FileLock

FileLock

Exceptions

IOException

Map(MapMode, long, long)

public MappedByteBuffer Map(FileChannel.MapMode arg0, long arg1, long arg2)

Parameters

arg0 FileChannel.MapMode

FileChannel.MapMode

arg1 long

long

arg2 long

long

Returns

MappedByteBuffer

MappedByteBuffer

Exceptions

IOException

Open(Path, params OpenOption[])

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

Parameters

arg0 Path

Path

arg1 OpenOption[]

OpenOption

Returns

FileChannel

FileChannel

Exceptions

IOException

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 Path

Path

arg1 Set<Arg1ExtendsJava_Nio_File_OpenOption>

Set

arg2 FileAttribute<object>[]

FileAttribute

Returns

FileChannel

FileChannel

Type Parameters

Arg1ExtendsJava_Nio_File_OpenOption

OpenOption

Exceptions

IOException

Position()

public long Position()

Returns

long

long

Exceptions

IOException

Position(long)

public SeekableByteChannel Position(long arg0)

Parameters

arg0 long

long

Returns

SeekableByteChannel

SeekableByteChannel

Exceptions

IOException

Read(ByteBuffer)

public int Read(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

Exceptions

IOException

Read(ByteBuffer, long)

public int Read(ByteBuffer arg0, long arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

Returns

int

int

Exceptions

IOException

Read(ByteBuffer[])

public long Read(ByteBuffer[] arg0)

Parameters

arg0 ByteBuffer[]

ByteBuffer

Returns

long

long

Exceptions

IOException

Read(ByteBuffer[], int, int)

public long Read(ByteBuffer[] arg0, int arg1, int arg2)

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

Returns

long

long

Exceptions

IOException

Size()

public long Size()

Returns

long

long

Exceptions

IOException

TransferFrom(ReadableByteChannel, long, long)

public long TransferFrom(ReadableByteChannel arg0, long arg1, long arg2)

Parameters

arg0 ReadableByteChannel

ReadableByteChannel

arg1 long

long

arg2 long

long

Returns

long

long

Exceptions

IOException

TransferTo(long, long, WritableByteChannel)

public long TransferTo(long arg0, long arg1, WritableByteChannel arg2)

Parameters

arg0 long

long

arg1 long

long

arg2 WritableByteChannel

WritableByteChannel

Returns

long

long

Exceptions

IOException

Truncate(long)

public SeekableByteChannel Truncate(long arg0)

Parameters

arg0 long

long

Returns

SeekableByteChannel

SeekableByteChannel

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)

public int Write(ByteBuffer arg0)

Parameters

arg0 ByteBuffer

ByteBuffer

Returns

int

int

Exceptions

IOException

Write(ByteBuffer, long)

public int Write(ByteBuffer arg0, long arg1)

Parameters

arg0 ByteBuffer

ByteBuffer

arg1 long

long

Returns

int

int

Exceptions

IOException

Write(ByteBuffer[])

public long Write(ByteBuffer[] arg0)

Parameters

arg0 ByteBuffer[]

ByteBuffer

Returns

long

long

Exceptions

IOException

Write(ByteBuffer[], int, int)

public long Write(ByteBuffer[] arg0, int arg1, int arg2)

Parameters

arg0 ByteBuffer[]

ByteBuffer

arg1 int

int

arg2 int

int

Returns

long

long

Exceptions

IOException

Operators

implicit operator GatheringByteChannel(FileChannel)

public static implicit operator GatheringByteChannel(FileChannel t)

Parameters

t FileChannel

Returns

GatheringByteChannel

implicit operator ScatteringByteChannel(FileChannel)

public static implicit operator ScatteringByteChannel(FileChannel t)

Parameters

t FileChannel

Returns

ScatteringByteChannel

implicit operator SeekableByteChannel(FileChannel)

Converter from FileChannel to SeekableByteChannel

public static implicit operator SeekableByteChannel(FileChannel t)

Parameters

t FileChannel

Returns

SeekableByteChannel