java - 将电缆调制解调器配置文件转换为 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 对象。请帮我。
提前致谢。
解决方案
推荐阅读
- javascript - 试图让按钮出现在鼠标悬停上
- performance - 为什么在 OpenMP 线程中运行的任务实际上比在串行中运行的时间更长?
- python-3.x - 尝试使用下拉菜单(选择元素)使硒发挥作用
- node.js - 如何结合这两个 API?
- mpi - HDF5 从两个通信器写入单个文件
- python - 将数据框合并到一个数据框的最快方法
- powerbi - 资产负债表指标 DAX(填空)
- layout - SwiftUI Path 作为 contentShape,与 Image 不对齐
- android - React Native 开发服务器错误 500
- c - 动态调整作为双指针传入的数组的大小:检测到双自由