Return-Path: X-Original-To: apmail-avro-user-archive@www.apache.org Delivered-To: apmail-avro-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E84E0FD3D for ; Mon, 2 Sep 2013 10:58:03 +0000 (UTC) Received: (qmail 8301 invoked by uid 500); 2 Sep 2013 10:58:02 -0000 Delivered-To: apmail-avro-user-archive@avro.apache.org Received: (qmail 7954 invoked by uid 500); 2 Sep 2013 10:57:55 -0000 Mailing-List: contact user-help@avro.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@avro.apache.org Delivered-To: mailing list user@avro.apache.org Received: (qmail 7946 invoked by uid 99); 2 Sep 2013 10:57:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 10:57:54 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of michal.one1337@gmail.com designates 209.85.214.49 as permitted sender) Received: from [209.85.214.49] (HELO mail-bk0-f49.google.com) (209.85.214.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Sep 2013 10:57:46 +0000 Received: by mail-bk0-f49.google.com with SMTP id r7so1492058bkg.36 for ; Mon, 02 Sep 2013 03:57:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=F8GaMloGZmeWfYdDpgzterWXOKRIPhMVwLDqbC2UdnQ=; b=iKPNF5MluPLEAdDOabuAjGrla6/dPcUNAWbUNfk9+IbIn9oui+oGoO5KnmmeopGAG3 IINNQ9s67xCPsayLcKiCP0RnJbYbiDRmbQRR09NUZ5fcSq9OrfjOUqLjmYJo2AQRUrxt Supm5U09Ndoo4vLikdvjEGiQXS6B2UEDEsNeD9AhmZoBDynJu6HTcqMDpi7ZJHLybpd9 uAvC1Z9/tJAUcuA+p0gOD8F2S8xWL6QzSD5SX3g0ZafLWBHXJW4h/8m9HVl/cGrZuGd0 lWevs/zlJcrwBKAJ6lDiT/BTnEsqDfPU5U9+GbKRQTR3/gJRR5WZWrBQIQAe6HOmfAFA dIZQ== X-Received: by 10.204.121.201 with SMTP id i9mr16804669bkr.13.1378119446367; Mon, 02 Sep 2013 03:57:26 -0700 (PDT) Received: from SLI.DOMnet (aekz79.neoplus.adsl.tpnet.pl. [79.191.25.79]) by mx.google.com with ESMTPSA id pn6sm2312454bkb.14.1969.12.31.16.00.00 (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 02 Sep 2013 03:57:25 -0700 (PDT) Message-ID: <52246F14.7020804@gmail.com> Date: Mon, 02 Sep 2013 12:57:24 +0200 From: =?UTF-8?B?bWljaGHFgg==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 MIME-Version: 1.0 To: user@avro.apache.org Subject: How to define Protocol from AVDL? Content-Type: multipart/alternative; boundary="------------020709090100030404040903" X-Virus-Checked: Checked by ClamAV on apache.org This is a multi-part message in MIME format. --------------020709090100030404040903 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Hi, This is my first time with mailing list. Question: The reading od AVPR is easy: |Protocol protocol = Protocol.parse(new File("ht-proto.avpr")); | But this does not work for IDL files (AVDL). *How to read the AVDL file so I could accomplish the following task but using AVDL instead of 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 file } | --------------020709090100030404040903 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Hi,

This is my first time with mailing list.
Question:

The reading od AVPR is easy:

Protocol protocol = Protocol.parse(new File("ht-proto.avpr"));

But this does not work for IDL files (AVDL).

How to read the AVDL file so I could accomplish the following task but using AVDL instead of 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 file       
 }



--------------020709090100030404040903--