agave-apps/clients/IOService.java
/**
	 * Parses the repsonse json from the IO service into a list of RemoteFileInfo objects.
	 * 
	 * @param response JsonNode object containing the service result attribute value.
	 * @return List of RemoteFileInfo objects
	 * @throws ProfileException 
	 * @throws RemoteFileException 
	 */
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects.

@param response JsonNode object containing the service result attribute value.
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects . @param response JsonNode object containing the service result attribute value .
private List<RemoteFile> parseFileList(JsonNode response) throws RemoteFileException
	{
		List<RemoteFile> files = new ArrayList<RemoteFile>();
		if (response == null) {
			return files;
		} 
		else 
		{
			if (response.isArray()) {
				for(int i=0; i<response.size(); i++) {
					JsonNode jsonFile = response.get(i);
					files.add(RemoteFile.fromJSON(jsonFile));
				}
			} else {
				files.add(RemoteFile.fromJSON(response));
			}
			return files;
		}
	}
private List < RemoteFile > parseFileList ( JsonNode response ) throws RemoteFileException { List < RemoteFile > files = new ArrayList < RemoteFile > ( ) ; if ( response == null ) { return files ; } else { if ( response . isArray ( ) ) { for ( int i = 0 ; i < response . size ( ) ; i ++ ) { JsonNode jsonFile = response . get ( i ) ; files . add ( RemoteFile . fromJSON ( jsonFile ) ) ; } } else { files . add ( RemoteFile . fromJSON ( response ) ) ; } return files ; } }
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects.
Parses the repsonse json from the IO service into a list of RemoteFileInfo objects .