private Object [ ] getUpdateCatalogParams ( File catalogPath , File deploymentPath ) throws IOException { Object [ ] params = new Object [ 2 ] ; if ( catalogPath != null ) { params [ 0 ] = ClientUtils . fileToBytes ( catalogPath ) ; } else { params [ 0 ] = null ; } if ( deploymentPath != null ) { params [ 1 ] = new String ( ClientUtils . fileToBytes ( deploymentPath ) , Constants . UTF8ENCODING ) ; } else { params [ 1 ] = null ; } return params ; }
Serializes catalog and deployment file for UpdateApplicationCatalog . Catalog is serialized into byte array deployment file is serialized into string .