Class Directfile
java.lang.Object
svm.env.dataset.Dataset
svm.env.dataset.ImageFile
svm.env.dataset.Directfile
Directfile 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.(package private) intThe variable "RECORDSIZE" is the fixed size of all external images.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
ConstructorsConstructorDescriptionDirectfile(String fileName, int type, String action, int imglng) Construct a new DirectfileSpec with the given arguments. -
Method Summary
Modifier and TypeMethodDescriptionvoidclfile()Close the underlying fileintinimage(ObjectAddress chrAddr, int nchr) Reads a line from the underlying file into a character areaintlastloc()Returns the last locationvoidlocate(int pos) Locate the given 'pos' on the underlying RandomAccessFilevoidWrites outimage to the underlying fileprivate StringreadLine()Utility: read a line from the underlying RandomAccessFileMethods inherited from class ImageFile
breakOutimageMethods inherited from class Dataset
edFileType, toString
-
Field Details
-
randomAccessFile
The underlying RandomAccessFile used. -
RECORDSIZE
int RECORDSIZEThe variable "RECORDSIZE" is the fixed size of all external images. It is set by "open" and subdivide the external file into series of external images, without any image separating characters. -
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
-
Directfile
-
-
Method Details
-
clfile
-
inimage
Description copied from class:ImageFileReads a line from the underlying file into a character area -
readLine
Utility: read a line from the underlying RandomAccessFile- Returns:
- the line read
-
outimage
-
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
-