首页 > 解决方案 > 将电缆调制解调器配置文件转换为 json/xml/java 对象

问题描述

请帮我。我正在工作 n/w 域项目。我有这样的配置文件。

Main
{
    NetworkAccess 1;
    MaxCPE 3;
    GlobalPrivacyEnable 1;
    BaselinePrivacy
    {
        AuthTimeout 10;
        ReAuthTimeout 10;
        AuthGraceTime 600;
        OperTimeout 10;
        ReKeyTimeout 10;
        TEKGraceTime 600;
        AuthRejectTimeout 60;
        SAMapWaitTimeout 1;
        SAMapMaxRetries 4;
    }
    UsServiceFlow
    {
        UsServiceFlowRef 1;
        QosParamSetType 7;
        ServiceClassName "USFLOW_NAME";
    }
    DsServiceFlow
    {
        DsServiceFlowRef 101;
        QosParamSetType 7;
        ServiceClassName "DSFLOW_NAME";
    }
}

我需要将其转换为任何格式,例如 json/xml/java 对象。请帮我。

提前致谢。

标签: javajsonxmlconfiguration-filesdata-conversion

解决方案


推荐阅读