Class DirectBytefile
java.lang.Object
svm.env.dataset.Dataset
svm.env.dataset.ByteFile
svm.env.dataset.DirectBytefile
DirectBytefile Bridge.
Link to GitHub: Source File.
- Author:
- Simula Standard, S-Port: The Environment Interface, Øystein Myhre Andersen
-
Field Summary
FieldsModifier and TypeFieldDescriptionintThe variable MAXLOC indicates the maximum possible location on the external file.private RandomAccessFileThe underlying RandomAccessFile used.Fields inherited from class Dataset
FIL_DIRECTBYTEFILE, FIL_DIRECTFILE, FIL_INBYTEFILE, FIL_INFILE, FIL_OUTBYTEFILE, FIL_OUTFILE, FIL_PRINTFILE, fileAction, fileName, fileType, KEY_SYSIN, KEY_SYSOUT, KEY_SYSTRACE -
Constructor Summary
ConstructorsConstructorDescriptionDirectBytefile(String fileName, int type, String action) Construct a new DirectBytefileSpec with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidclfile()Close the underlying fileintinbyte()Returns a byte from the underlying RandomAccessFileintlastloc()Returns the last locationvoidlocate(int pos) Locate the given 'pos' on the underlying RandomAccessFilevoidoutbyte(int b) Writes a byte through the underlying RandomAccessFileMethods inherited from class Dataset
edFileType, toString
-
Field Details
-
randomAccessFile
The underlying RandomAccessFile used. -
MAXLOC
public int MAXLOCThe variable MAXLOC indicates the maximum possible location on the external file.
If this is not meaningful MAXLOC has the value of "maxint"-1.
The procedure "maxloc" gives access to the current MAXLOC value.
-
-
Constructor Details
-
DirectBytefile
-
-
Method Details
-
clfile
-
inbyte
public int inbyte()Returns a byte from the underlying RandomAccessFile- Returns:
- a byte from the underlying RandomAccessFile
-
outbyte
public void outbyte(int b) Writes a byte through the underlying RandomAccessFile- Parameters:
b- the byte to be written
-
locate
public void locate(int pos) Locate the given 'pos' on the underlying RandomAccessFile- Parameters:
pos- the position to locate
-
lastloc
public int lastloc()Returns the last location- Returns:
- the last location
-