org.maverickdbms.basic
Class OSFile

java.lang.Object
  extended byorg.maverickdbms.basic.OSFile
All Implemented Interfaces:
Variable

public class OSFile
extends java.lang.Object
implements Variable

OSFile provides an implementation of a MV OS file.


Field Summary
protected  java.io.RandomAccessFile file
           
static int READ_ONLY
           
static int READ_WRITE
           
static int WRITE_ONLY
           
 
Constructor Summary
OSFile()
           
 
Method Summary
 mvString FILEINFO(mvString result, ConstantString code)
           
 ConstantString OSBREAD(mvString var, ConstantString length)
          Read block from current file position.
 ConstantString OSBWRITE(ConstantString var, boolean append)
          Write block
 ConstantString OSCLOSE()
          Close OS file.
 ConstantString OSOPEN(ConstantString name, int flags)
          Open OS file.
 ConstantString OSREAD(mvString var)
          Read record from current file position.
 ConstantString OSWRITE(ConstantString var)
          Write record at current filepostion.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

READ_ONLY

public static final int READ_ONLY
See Also:
Constant Field Values

WRITE_ONLY

public static final int WRITE_ONLY
See Also:
Constant Field Values

READ_WRITE

public static final int READ_WRITE
See Also:
Constant Field Values

file

protected java.io.RandomAccessFile file
Constructor Detail

OSFile

public OSFile()
Method Detail

FILEINFO

public mvString FILEINFO(mvString result,
                         ConstantString code)
                  throws mvException
Throws:
mvException

OSCLOSE

public ConstantString OSCLOSE()
                       throws mvException
Close OS file.

Throws:
mvException

OSOPEN

public ConstantString OSOPEN(ConstantString name,
                             int flags)
                      throws mvException
Open OS file.

Throws:
mvException

OSBREAD

public ConstantString OSBREAD(mvString var,
                              ConstantString length)
                       throws mvException
Read block from current file position.

Throws:
mvException

OSREAD

public ConstantString OSREAD(mvString var)
                      throws mvException
Read record from current file position.

Throws:
mvException

OSBWRITE

public ConstantString OSBWRITE(ConstantString var,
                               boolean append)
                        throws mvException
Write block

Throws:
mvException

OSWRITE

public ConstantString OSWRITE(ConstantString var)
                       throws mvException
Write record at current filepostion.

Throws:
mvException