Black Hill Software z/OS Utilities 1.6.0 API
This module provides functions useful for Java programs on z/OS.
Maven Dependency
Define the Black Hill Software repository and add the dependency to your POM:
<repositories>
<repository>
<id>black-hill-software</id>
<name>Black Hill Software Repository</name>
<url>https://repository.blackhillsoftware.com/public</url>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>com.blackhillsoftware.zutil</groupId>
<artifactId>bhs-zutil</artifactId>
<version>1.6.0</version>
</dependency>
</dependencies>
com.blackhillsoftware.zutil.io
This package provides:- RecordReader and RecordWriter
Wrappers for the IBM JZOS RecordReader and RecordWriter classes, implementing the Closeable interface so that RecordReader and RecordWriter can be used in a try-with-resources block.
- TextRecordReader and TextRecordWriter
Classes for reading and writing EBCDIC text records in z/OS datasets.
TextRecordReader
extends RecordReader and provides methods:TextRecordReader.readLine()
- read a line (record) as a StringTextRecordReader.readAllLines()
- read all lines from the dataset as a List of Strings
TextRecordWriter
extends RecordWriter and provides methods:TextRecordWriter.writeLine(java.lang.String)
- write a String to a dataset. Options can be set to control whether long lines wrap to the next record, or cause an exception.
com.blackhillsoftware.zutil.mvs
This package provides:- CommandHandler
Provides an implementation of the JZOS MvsCommandCallback interface to allow multiple command handling functions to be set up, from multiple classes.