Class FileChannel
public class FileChannel : AbstractInterruptibleChannel, IDynamicMetaObjectProvider, IJVMBridgeCore, IEquatable<IJVMBridgeBase>, IDisposable, IJVMBridgeBaseStatic, IJVMBridgeBase, IJVMBridgeDefinition
- Inheritance
-
FileChannel
- Implements
- Inherited Members
-
JVMBridgeBase.ReferenceEqualsJVM(JVMBridgeBase, JVMBridgeBase)JVMBridgeBase.Equals(IJVMBridgeBase)
- 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
argsobject[]
Properties
BridgeClassName
Java class name to be instantiated
public override string BridgeClassName { get; }
Property Value
IsBridgeAbstract
true if the BridgeClassName is an abstract class, i.e. cannot be created an instance
public override bool IsBridgeAbstract { get; }
Property Value
IsBridgeCloseable
true if the BridgeClassName implements Closeable
public override bool IsBridgeCloseable { get; }
Property Value
IsBridgeInterface
true if the BridgeClassName is an interface, i.e. does not have any public constructor
public override bool IsBridgeInterface { get; }
Property Value
IsBridgeStatic
true if the BridgeClassName is a static class, i.e. does not have any public constructor
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
arg0FileChannel.MapModearg1longarg2long
Returns
Exceptions
Open(Path, params OpenOption[])
public static FileChannel Open(Path arg0, params OpenOption[] arg1)
Parameters
arg0Patharg1OpenOption[]
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
arg0Patharg1Set<Arg1ExtendsJava_Nio_File_OpenOption>arg2FileAttribute<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
arg0ByteBuffer
Returns
Exceptions
Read(ByteBuffer, long)
public int Read(ByteBuffer arg0, long arg1)
Parameters
arg0ByteBufferarg1long
Returns
Exceptions
Read(ByteBuffer[])
public long Read(ByteBuffer[] arg0)
Parameters
arg0ByteBuffer[]
Returns
Exceptions
Read(ByteBuffer[], int, int)
public long Read(ByteBuffer[] arg0, int arg1, int arg2)
Parameters
arg0ByteBuffer[]arg1intarg2int
Returns
Exceptions
Size()
public long Size()
Returns
Exceptions
TransferFrom(ReadableByteChannel, long, long)
public long TransferFrom(ReadableByteChannel arg0, long arg1, long arg2)
Parameters
arg0ReadableByteChannelarg1longarg2long
Returns
Exceptions
TransferTo(long, long, WritableByteChannel)
public long TransferTo(long arg0, long arg1, WritableByteChannel arg2)
Parameters
arg0longarg1longarg2WritableByteChannel
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
arg0ByteBuffer
Returns
Exceptions
Write(ByteBuffer, long)
public int Write(ByteBuffer arg0, long arg1)
Parameters
arg0ByteBufferarg1long
Returns
Exceptions
Write(ByteBuffer[])
public long Write(ByteBuffer[] arg0)
Parameters
arg0ByteBuffer[]
Returns
Exceptions
Write(ByteBuffer[], int, int)
public long Write(ByteBuffer[] arg0, int arg1, int arg2)
Parameters
arg0ByteBuffer[]arg1intarg2int
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)