Table of Contents

Class RandomAccessFile

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

RandomAccessFile()

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

public RandomAccessFile()

RandomAccessFile(File, String)

public RandomAccessFile(File arg0, String arg1)

Parameters

arg0 File

File

arg1 String

String

Exceptions

FileNotFoundException

RandomAccessFile(String, String)

public RandomAccessFile(String arg0, String arg1)

Parameters

arg0 String

String

arg1 String

String

Exceptions

FileNotFoundException

RandomAccessFile(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

public RandomAccessFile(params object[] args)

Parameters

args object[]

Properties

BridgeClassName

public override string BridgeClassName { get; }

Property Value

string

Channel

public FileChannel Channel { get; }

Property Value

FileChannel

FD

public FileDescriptor FD { get; }

Property Value

FileDescriptor

FilePointer

public long FilePointer { get; }

Property Value

long

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

Close()

public void Close()

Exceptions

IOException

Length()

public long Length()

Returns

long

long

Exceptions

IOException

Read()

public int Read()

Returns

int

int

Exceptions

IOException

Read(byte[])

public int Read(byte[] arg0)

Parameters

arg0 byte[]

byte

Returns

int

int

Exceptions

IOException

Read(byte[], int, int)

public int Read(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Returns

int

int

Exceptions

IOException

ReadBoolean()

public bool ReadBoolean()

Returns

bool

bool

Exceptions

IOException

ReadByte()

public byte ReadByte()

Returns

byte

byte

Exceptions

IOException

ReadChar()

public char ReadChar()

Returns

char

char

Exceptions

IOException

ReadDouble()

public double ReadDouble()

Returns

double

double

Exceptions

IOException

ReadFloat()

public float ReadFloat()

Returns

float

float

Exceptions

IOException

ReadFully(byte[])

public void ReadFully(byte[] arg0)

Parameters

arg0 byte[]

byte

Exceptions

IOException

ReadFully(byte[], int, int)

public void ReadFully(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Exceptions

IOException

ReadInt()

public int ReadInt()

Returns

int

int

Exceptions

IOException

ReadLine()

public String ReadLine()

Returns

String

String

Exceptions

IOException

ReadLong()

public long ReadLong()

Returns

long

long

Exceptions

IOException

ReadShort()

public short ReadShort()

Returns

short

short

Exceptions

IOException

ReadUTF()

public String ReadUTF()

Returns

String

String

Exceptions

IOException

ReadUnsignedByte()

public int ReadUnsignedByte()

Returns

int

int

Exceptions

IOException

ReadUnsignedShort()

public int ReadUnsignedShort()

Returns

int

int

Exceptions

IOException

Seek(long)

public void Seek(long arg0)

Parameters

arg0 long

long

Exceptions

IOException

SetLength(long)

public void SetLength(long arg0)

Parameters

arg0 long

long

Exceptions

IOException

SkipBytes(int)

public int SkipBytes(int arg0)

Parameters

arg0 int

int

Returns

int

int

Exceptions

IOException

Write(byte[])

public void Write(byte[] arg0)

Parameters

arg0 byte[]

byte

Exceptions

IOException

Write(byte[], int, int)

public void Write(byte[] arg0, int arg1, int arg2)

Parameters

arg0 byte[]

byte

arg1 int

int

arg2 int

int

Exceptions

IOException

Write(int)

public void Write(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteBoolean(bool)

public void WriteBoolean(bool arg0)

Parameters

arg0 bool

bool

Exceptions

IOException

WriteByte(int)

public void WriteByte(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteBytes(String)

public void WriteBytes(String arg0)

Parameters

arg0 String

String

Exceptions

IOException

WriteChar(int)

public void WriteChar(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteChars(String)

public void WriteChars(String arg0)

Parameters

arg0 String

String

Exceptions

IOException

WriteDouble(double)

public void WriteDouble(double arg0)

Parameters

arg0 double

double

Exceptions

IOException

WriteFloat(float)

public void WriteFloat(float arg0)

Parameters

arg0 float

float

Exceptions

IOException

WriteInt(int)

public void WriteInt(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteLong(long)

public void WriteLong(long arg0)

Parameters

arg0 long

long

Exceptions

IOException

WriteShort(int)

public void WriteShort(int arg0)

Parameters

arg0 int

int

Exceptions

IOException

WriteUTF(String)

public void WriteUTF(String arg0)

Parameters

arg0 String

String

Exceptions

IOException

Operators

implicit operator Closeable(RandomAccessFile)

Converter from RandomAccessFile to Closeable

public static implicit operator Closeable(RandomAccessFile t)

Parameters

t RandomAccessFile

Returns

Closeable

implicit operator DataInput(RandomAccessFile)

Converter from RandomAccessFile to DataInput

public static implicit operator DataInput(RandomAccessFile t)

Parameters

t RandomAccessFile

Returns

DataInput

implicit operator DataOutput(RandomAccessFile)

Converter from RandomAccessFile to DataOutput

public static implicit operator DataOutput(RandomAccessFile t)

Parameters

t RandomAccessFile

Returns

DataOutput