阅读 od AVPR 很容易:
Protocol protocol = Protocol.parse(new File("ht-proto.avpr"));
但这不适用于 IDL 文件 (AVDL)。
如何读取 AVDL 文件以便我可以完成以下任务,但使用 AVDL 而不是 AVPR:
public static void main (String[] args)  {
     Main.class.getResourceAsStream("net/protocol_man.avdl");
     Protocol protocol  =
           Protocol.parse(Main.class.getResourceAsStream("net/protocol_man.avpr"));
                                                   //this doesnt work for AVDL       
 }