Class DsnGet
- java.lang.Object
-
- zowe.client.sdk.zosfiles.dsn.methods.DsnGet
-
public class DsnGet extends Object
Provides retrieve dataset and member functionality- Version:
- 5.0
- Author:
- Nikunj Goyal, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description DsnGet(ZosConnection connection)DsnGet Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStreamget(String targetName, DsnDownloadInputData downloadInputData)Retrieve sequential dataset or dataset member contentDatasetgetDsnInfo(String dataSetName)Retrieve dataset information.
-
-
-
Constructor Detail
-
DsnGet
public DsnGet(ZosConnection connection)
DsnGet Constructor- Parameters:
connection- for connection information, see ZosConnection object
-
-
Method Detail
-
getDsnInfo
public Dataset getDsnInfo(String dataSetName) throws ZosmfRequestException
Retrieve dataset information.- Parameters:
dataSetName- sequential or partition dataset (e.g. 'DATASET.LIB')- Returns:
- dataset object
- Throws:
ZosmfRequestException- request error state
-
get
public InputStream get(String targetName, DsnDownloadInputData downloadInputData) throws ZosmfRequestException
Retrieve sequential dataset or dataset member content- Parameters:
targetName- name of a sequential dataset e.g., DATASET.SEQ.DATA or a dataset member e.g., DATASET.LIB(MEMBER)downloadInputData- to download parameters, see DsnDownloadInputData object- Returns:
- a content stream
- Throws:
ZosmfRequestException- request error state
-
-