类 IterateINI

java.lang.Object
com.tlcsdm.core.dsl.impl.IterateINI

public class IterateINI extends Object
Support iterating over the key-value pairs of any INI file.
作者:
unknowIfGuestInDream, Konloch
  • 字段详细资料

    • ini

      private static final DSL ini
      Define a new DSL as INI format
  • 构造器详细资料

    • IterateINI

      private IterateINI()
  • 方法详细资料

    • fromFile

      public static void fromFile(String filePath, KeyValuePairFound onPairFound) throws IOException
      Parse and iterate the key-value pairs of any INI file.
      参数:
      filePath - any String as the file path of the INI file
      onPairFound - any KeyValuePairFound called whenever a key-value pair is found
      抛出:
      IOException - if an I/O error occurs reading from the stream
    • fromFile

      public static void fromFile(File file, KeyValuePairFound onPairFound) throws IOException
      Parse and iterate the key-value pairs of any INI file.
      参数:
      file - any File in INI file format
      onPairFound - any KeyValuePairFound called whenever a key-value pair is found
      抛出:
      IOException - if an I/O error occurs reading from the stream