Exemplo n.º 1
0
  /**
   * Reads configuration.
   *
   * @param writeType write type
   * @param configType configuration type
   * @throws IOException thrown when read fails
   */
  public static String readConfig(WriteReadType writeType, ConfigType configType)
      throws IOException {

    return readConfig(writeType, configType.getFileName());
  }
Exemplo n.º 2
0
  /**
   * Writes configuration.
   *
   * @param config configuration String
   * @param writeType write type
   * @param configType configuration type
   * @throws IOException thrown when read fails
   */
  public static void writeConfig(String config, WriteReadType writeType, ConfigType configType)
      throws IOException {

    writeConfig(config, writeType, configType.getFileName());
  }