Class UssGet
- java.lang.Object
-
- zowe.client.sdk.zosfiles.uss.methods.UssGet
-
public class UssGet extends Object
Provides Unix System Services (USS) read from object functionality- Version:
- 4.0
- Author:
- James Kostrewski, Frank Giordano
-
-
Constructor Summary
Constructors Constructor Description UssGet(ZosConnection connection)UssGet Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getBinary(String fileNamePath)Get the binary contents of a UNIX fileResponsegetCommon(String fileNamePath, UssGetInputData params)Get the contents of a UNIX file driven by the GetParams object settingsStringgetText(String fileNamePath)Get the text contents of a UNIX file
-
-
-
Constructor Detail
-
UssGet
public UssGet(ZosConnection connection)
UssGet Constructor- Parameters:
connection- for connection information, see ZosConnection object
-
-
Method Detail
-
getBinary
public byte[] getBinary(String fileNamePath) throws ZosmfRequestException
Get the binary contents of a UNIX file- Parameters:
fileNamePath- file name with a path- Returns:
- the byte array contents of the file
- Throws:
ZosmfRequestException- request error state
-
getText
public String getText(String fileNamePath) throws ZosmfRequestException
Get the text contents of a UNIX file- Parameters:
fileNamePath- file name with a path- Returns:
- the text contents of a file
- Throws:
ZosmfRequestException- request error state
-
getCommon
public Response getCommon(String fileNamePath, UssGetInputData params) throws ZosmfRequestException
Get the contents of a UNIX file driven by the GetParams object settings- Parameters:
fileNamePath- file name with a pathparams- GetParams object to drive the request- Returns:
- Response object
- Throws:
ZosmfRequestException- request error state
-
-