public class SAFSFile extends FileLineReader
This SAFSFile class is intended as the file instance class for a SAFSFileReader.
Although there are no STAF dependencies, the class is tightly integrated with the
reader. It has not been evaluated for any other use. Though, standalone use
is likely possible.
This class represents the most basic reader functionality. It will simply read a line of text for each call to readLine(). It uses a java.io.BufferedReader as the underlying IO mechanism.
Software Automation Framework Support (SAFS) https://safsdev.github.io/
Software Testing Automation Framework (STAF) http://staf.sourceforge.net
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
fileid |
protected int |
handle |
protected java.lang.String |
machine |
protected java.lang.String |
process |
Constructor and Description |
---|
SAFSFile()
This constructor will create an inoperable (Closed) file object.
|
SAFSFile(java.lang.String machine,
java.lang.String process,
int handle,
java.lang.String fileid,
java.io.File file)
The constructor used by the SAFSFileReader.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFileID()
Subclasses should not need to override this function.
|
int |
getHandle()
Subclasses should not need to override this function.
|
java.lang.String |
getMachine()
Subclasses should not need to override this function.
|
java.lang.String |
getProcess()
Subclasses should not need to override this function.
|
close, closeReader, getFilename, getFullpath, isClosed, isEOF, open, openFile, openStream, readLine, resetpointers, setFile, setStream
protected java.lang.String machine
protected java.lang.String process
protected int handle
protected java.lang.String fileid
public SAFSFile()
public SAFSFile(java.lang.String machine, java.lang.String process, int handle, java.lang.String fileid, java.io.File file)
super(machine, process, handle, fileid, file);
machine
- The STAF machine that requested this file be opened.process
- The STAF process that requested this file be opened.handle
- The STAF process handle that requested this file be opened.fileid
- A unique String ID to identify this file for the requesting process.
This is not a filename. Multiple open views of the same file can be opened
and each should have a unique fileid within the process namespace.file
- A File object that references the file to be opened.public java.lang.String getMachine()
public java.lang.String getProcess()
public java.lang.String getFileID()
public int getHandle()
Copyright © SAS Institute. All Rights Reserved.