Class UssGet


  • public class UssGet
    extends Object
    Provides Unix System Services (USS) read from object functionality

    z/OSMF REST API

    Version:
    2.0
    Author:
    James Kostrewski, Frank Giordano
    • Constructor Detail

      • UssGet

        public UssGet​(ZosConnection connection)
        UssGet Constructor
        Parameters:
        connection - connection information, see ZosConnection object
      • UssGet

        public UssGet​(ZosConnection connection,
                      ZoweRequest request)
        Alternative UssGet constructor with ZoweRequest object. This is mainly used for internal code unit testing with mockito, and it is not recommended to be used by the larger community.
        Parameters:
        connection - connection information, see ZosConnection object
        request - any compatible ZoweRequest Interface object
    • Method Detail

      • getBinary

        public byte[] getBinary​(String fileNamePath)
                         throws Exception
        Get the binary contents of a file
        Parameters:
        fileNamePath - file name with path
        Returns:
        the byte array contents of the file
        Throws:
        Exception - processing error
      • getText

        public String getText​(String fileNamePath)
                       throws Exception
        Get the text contents of a file
        Parameters:
        fileNamePath - file name with path
        Returns:
        the text contents of file
        Throws:
        Exception - processing error
      • getCommon

        public Response getCommon​(String filePathName,
                                  GetParams params)
                           throws Exception
        Get the contents of a file driven by the GetParams object settings
        Parameters:
        filePathName - file name with path
        params - GetParams object to drive the request
        Returns:
        Response object
        Throws:
        Exception - processing error