1

我有以下文件/字符串/数据。我想在核心 java 或 Android 的键值对中解析它。它是“.ini”文件,但是像 ini4j、java 属性类这样的解析器不适用于这个。任何人都可以帮忙在选择解析器和实施步骤时。

version = "1.5";
client = "demo";
key2 = "Key2_value";
Providers = ( 
  {
    Name = "DEMO_PROVIDER";
    Version = 3845678;
    key3="key_3_value"
    PAs = [ "Pa value 1", "Pa value 2", "Pa value 3" ];
    LogLevel = "DEBUG";
    Server = "www.stackoverflow.com";
    Services = ( 
      {
        Percent = 10;
        certFormat = "text";
        key4 = false;
        key5 = "KEY5_NAME";
        Uri = "www.stackoverflow.com";
        Key6= "No";
        key7= "R11";
        Users = [ "swapnil@test.local" ];
      } );
  } );

哪种解析器将用于这种文件。

4

0 回答 0