/** * Creates a new NetworkConfig instance configured with details supplied in a JSON file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromJsonFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, true); }
/** * Creates a new NetworkConfig instance configured with details supplied in a YAML file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromYamlFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, false); }
/** * Creates a new NetworkConfig instance configured with details supplied in a YAML file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromYamlFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, false); }
/** * Creates a new NetworkConfig instance configured with details supplied in a JSON file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromJsonFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, true); }
/** * Creates a new NetworkConfig instance configured with details supplied in a YAML file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromYamlFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, false); }
/** * Creates a new NetworkConfig instance configured with details supplied in a JSON file. * * @param configFile The file containing the network configuration * @return A new NetworkConfig instance * @throws InvalidArgumentException * @throws IOException */ public static NetworkConfig fromJsonFile(File configFile) throws InvalidArgumentException, IOException, NetworkConfigurationException { return fromFile(configFile, true); }