Date: Thu, 8 Jun 2023 14:01:19 -0400 From: Aryeh Friedman <aryeh.friedman@gmail.com> To: FreeBSD Mailing List <freebsd-questions@freebsd.org> Subject: Slightly OT: non-buffered stdin in Java Message-ID: <CAGBxaX=muu6JbMsdZbop7mYa-LetXPHvO8_=kMZtF%2BzSAdiBYA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Under Java stdin (System.in) is a buffered stream not sent to the application until return is pressed. But, Java can read from files/sockets and other generic InputStreams unbuffered. So I was wondering if there is a command that will make stdin go to a file so that Java can open that file and read it unbuffered? I know I can do something like cat ->file but that makes it hard to sync stdout and stderr (both are unbuffered in Java) with the file version of stdin -- Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaX=muu6JbMsdZbop7mYa-LetXPHvO8_=kMZtF%2BzSAdiBYA>