public class PLIFile
extends java.lang.Object
Requires access to ecobol.jar in order to function
Modifier and Type | Field and Description |
---|---|
static int |
BYTES
size in bytes if converted to a byte array
hint: cannot be converted to a byte array
|
static java.lang.String |
NOCOBOLMSG
warning msg
|
static java.util.HashMap<java.lang.String,IPLIFile> |
OpenFiles
keep track of all open files
|
Constructor and Description |
---|
PLIFile()
PLIFile constructor should not be used
|
Modifier and Type | Method and Description |
---|---|
static void |
CloseAll()
close and free all New'd file
|
static void |
Free(java.lang.String ddName)
close and free a New'd file
|
static IPLIFile |
New(java.lang.String ddName,
java.util.EnumSet<IPLIFile.Attr> declareFileAttributes)
New() looks at the attributes and constructs either a PLIRecord or PLIStream
|
static IPLIFile |
New(java.lang.String ddName,
java.util.EnumSet<IPLIFile.Attr> declareFileAttributes,
java.lang.String title,
java.lang.String environment)
New() looks at the attributes and constructs either a PLIRecord or PLIStream
|
static IPLIFile |
New(java.lang.String ddName,
java.util.EnumSet<IPLIFile.Attr> declareFileAttributes,
java.lang.String title,
java.lang.String environment,
int lineSize,
int pageSize)
New() looks at the attributes and constructs either a PLIRecord or PLIStream
|
static IPLIFile |
Open(IPLIFile dclFile,
java.util.EnumSet<IPLIFile.Attr> openFileAttributes)
Open modifies a previously declared IPLIFile set of attributes (possibly switching its
type) and opens the file the file for reading
|
static IPLIFile |
Open(IPLIFile dclFile,
java.util.EnumSet<IPLIFile.Attr> openFileAttributes,
java.lang.String title,
java.lang.String environment)
Open modifies a previously declared IPLIFile set of attributes (possibly switching its
type) and opens the file the file for reading
|
static IPLIFile |
Open(IPLIFile dclFile,
java.util.EnumSet<IPLIFile.Attr> openFileAttributes,
java.lang.String title,
java.lang.String environment,
int lineSize,
int pageSize)
Open modifies a previously declared IPLIFile set of attributes (possibly switching its
type) and opens the file the file for reading
|
public static final int BYTES
public static final java.lang.String NOCOBOLMSG
public static java.util.HashMap<java.lang.String,IPLIFile> OpenFiles
public static IPLIFile New(java.lang.String ddName, java.util.EnumSet<IPLIFile.Attr> declareFileAttributes, java.lang.String title, java.lang.String environment, int lineSize, int pageSize)
ddName
- - the name of the FILE constant within the user program, which is
the DD name for the file unless overridden by other attributesdeclareFileAttributes
- - a set of attributes for creating the filetitle
- - the PL/I TITLE attribute specifying an alternate DDNAME or specific
dataset name or file PATH of the file to openenvironment
- - the PL/I ENVIRONMENT attribute specifying file, record and block
size attributes of the filelineSize
- - the number of characters in a PRINT STREAM filepageSize
- - the number of lines on a page in a PRINT STREAM filepublic static IPLIFile New(java.lang.String ddName, java.util.EnumSet<IPLIFile.Attr> declareFileAttributes, java.lang.String title, java.lang.String environment)
ddName
- - the name of the FILE constant within the user program, which is
the DD name for the file unless overridden by other attributesdeclareFileAttributes
- - a set of attributes for creating the filetitle
- - the PL/I TITLE attribute specifying an alternate DDNAME or specific
dataset name or file PATH of the file to openenvironment
- - the PL/I ENVIRONMENT attribute specifying file, record and block
size attributes of the filepublic static IPLIFile New(java.lang.String ddName, java.util.EnumSet<IPLIFile.Attr> declareFileAttributes)
ddName
- - the name of the FILE constant within the user program, which is
the DD name for the file unless overridden by other attributesdeclareFileAttributes
- - a set of attributes for creating the filepublic static IPLIFile Open(IPLIFile dclFile, java.util.EnumSet<IPLIFile.Attr> openFileAttributes, java.lang.String title, java.lang.String environment, int lineSize, int pageSize)
dclFile
- - the IPLIFile that was used to declare the file or null if this is a new oneopenFileAttributes
- - a set of attributes for creating the filetitle
- - the PL/I TITLE attribute specifying an alternate DDNAME or specific
dataset name or file PATH of the file to openenvironment
- - the PL/I ENVIRONMENT attribute specifying file, record and block
size attributes of the filelineSize
- - the number of characters in a PRINT STREAM filepageSize
- - the number of lines on a page in a PRINT STREAM filepublic static IPLIFile Open(IPLIFile dclFile, java.util.EnumSet<IPLIFile.Attr> openFileAttributes, java.lang.String title, java.lang.String environment)
dclFile
- - the IPLIFile that was used to declare the file or null if this is a new oneopenFileAttributes
- - a set of attributes for creating the filetitle
- - the PL/I TITLE attribute specifying an alternate DDNAME or specific
dataset name or file PATH of the file to openenvironment
- - the PL/I ENVIRONMENT attribute specifying file, record and block
size attributes of the filepublic static IPLIFile Open(IPLIFile dclFile, java.util.EnumSet<IPLIFile.Attr> openFileAttributes)
dclFile
- - the IPLIFile that was used to declare the file or null if thi)s is a new oneopenFileAttributes
- - a set of attributes for creating the filepublic static void Free(java.lang.String ddName)
ddName
- - the ddname of the file to freepublic static void CloseAll()