Re: FileOutputStream.available() and pipe EOF

2018-02-19 Thread Basin Ilya
t; cheers, >> Rémi >> >> - Mail original - >>> De: "Basin Ilya" <basini...@gmail.com> >>> À: "core-libs-dev" <core-libs-dev@openjdk.java.net> >>> Envoyé: Samedi 10 Février 2018 22:15:18 >>> Objet: Fi

Re: FileOutputStream.available() and pipe EOF

2018-02-10 Thread Basin Ilya
eturns -1, it's the ends of the stream. > > cheers, > Rémi > > - Mail original - >> De: "Basin Ilya" <basini...@gmail.com> >> À: "core-libs-dev" <core-libs-dev@openjdk.java.net> >> Envoyé: Samedi 10 Février 2018 22:15:18 &

Re: FileOutputStream.available() and pipe EOF

2018-02-10 Thread Remi Forax
libs-dev@openjdk.java.net> > Envoyé: Samedi 10 Février 2018 22:15:18 > Objet: FileOutputStream.available() and pipe EOF > Hi list. > > My question relates to streams returned by > java.lang.Process.getInputStream() > > On Linux calling available() after the other side of th

FileOutputStream.available() and pipe EOF

2018-02-10 Thread Basin Ilya
Hi list. My question relates to streams returned by java.lang.Process.getInputStream() On Linux calling available() after the other side of the pipe was closed will throw: java.io.IOException: Stream Closed This is very handy, because you can distinguish EOF and a pause in