开发者

How to parse a midlet JAD file in C#?

开发者 https://www.devze.com 2023-01-03 14:20 出处:网络
Besides doing it manually using regular expression search, is there other better ways to parse a JAD file?

Besides doing it manually using regular expression search, is there other better ways to parse a JAD file?

I need to be able to search for and replace/insert a new MIdlet-Install-Notify property to a JAD file given, also updating the value of the MIDlet-Jar-URL property.

Using ANTLR or TinyPG is a bit overkill for m开发者_运维问答y case.

TIA


Even Regex might be overkill, although it certainly will get the job done. It is a very simple text format to parse, string.StartsWith() and string.IndexOf() to find the colon would work well.

0

精彩评论

暂无评论...
验证码 换一张
取 消