我有以下文件/字符串/数据。我想在核心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" ];
} );
} );
将这种解析器用于此类文件。