From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.182.16.163 with SMTP id h3mr29173956obd.14.1431461937222; Tue, 12 May 2015 13:18:57 -0700 (PDT) X-Received: by 10.140.19.196 with SMTP id 62mr251833qgh.13.1431461937108; Tue, 12 May 2015 13:18:57 -0700 (PDT) Path: border1.nntp.dca1.giganews.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!m20no2608105iga.0!news-out.google.com!k20ni2136qgd.0!nntp.google.com!j5no6909650qga.1!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Tue, 12 May 2015 13:18:56 -0700 (PDT) In-Reply-To: <3dd8381f-ba34-4921-a2fe-c6bbf060f6f7@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=5.51.16.193; posting-account=lzjH_AoAAABq5H4FTxZ1AkonVQLbXoxB NNTP-Posting-Host: 5.51.16.193 References: <3dd8381f-ba34-4921-a2fe-c6bbf060f6f7@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Pipes-and-Filters From: stephane.carrez@gmail.com Injection-Date: Tue, 12 May 2015 20:18:57 +0000 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Xref: number.nntp.giganews.com comp.lang.ada:193154 Date: 2015-05-12T13:18:56-07:00 List-Id: Le dimanche 26 avril 2015 22:18:03 UTC+2, dpt a =E9crit=A0: > Hello, >=20 > I want to port a Pipes-and-Filters framework (http://architecture-group-4= .googlecode.com/svn-history/trunk/PipeAndFilter/src/edu/cmu/architecture/as= signment1/framework/FilterFramework.java) to Ada.=20 >=20 > It uses PipedInputStream and PipedOutputStream. > https://docs.oracle.com/javase/7/docs/api/java/io/PipedInputStream.html > https://docs.oracle.com/javase/7/docs/api/java/io/PipedOutputStream.html >=20 > Does something equivalent exists in Ada? I could not find anything by now= . >=20 > Best Regards You may have a look at Ada Utility Library and the Util.Streams framework. The framework defines the Output_Stream and Input_Stream interfaces similar to the Java interfaces. The Pipe_Stream can be used in place for the PipedInputStream or PipedOutputStream (it implements both interfaces). The framework is not as complete as the Java stream framework but you can still chain Input_Stream/Output_Stream instances together. The interesting Ada packages for the stream management are these: https://github.com/stcarrez/ada-util/blob/master/src/util-streams-pipes.ads https://github.com/stcarrez/ada-util/blob/master/src/util-streams-buffered.= ads https://github.com/stcarrez/ada-util/blob/master/src/util-streams-sockets.a= ds https://github.com/stcarrez/ada-util/blob/master/src/util-streams-texts.ads Stephane