Re: [JAVA] Unbuffered access to stdin

From: Gordon Beaton (not_at_for.email)
Date: 03/05/05


Date: 5 Mar 2005 19:05:31 +0100

On Sat, 05 Mar 2005 13:36:22 +0200, Max Rabkin wrote:
> While java's System.in is, according to the javadocs, an InputStream, it
> is in fact an instance of java.io.BufferedInputStream. Is there any way
> to have unbuffered access to it without hacking the JRE? (I can do it on
> my own computer, simply changing FilterInputStream's "in" field from
> "protected" to "public", but then I can't distribute my program).

AFAIK no.

However if you said why you think you need to do this, maybe someone
could suggest an alternative solution.

/gordon

-- 
[  do not email me copies of your followups  ]
g o r d o n + n e w s @  b a l d e r 1 3 . s e


Relevant Pages

  • [JAVA] Unbuffered access to stdin
    ... While java's System.in is, according to the javadocs, an InputStream, it ... to have unbuffered access to it without hacking the JRE? ...
    (comp.lang.java)
  • Re: Is System.in an object?
    ... Check it out in the Javadocs. ... Matthew Humphreyhttp://www.iviz.com/ ... System is a class and "in" is a static field whose value is some kind ... of InputStream. ...
    (comp.lang.java.programmer)
  • Re: Jakarta problem
    ... You have to drill down into the developer's section to get to the ... javadocs, IIRC. ... You can provide an InputStream to the request. ...
    (comp.lang.java.programmer)
  • Re: InputStream and Selector
    ... Create a Channel from the InputStream: ... [do not email me copies of your followups] ... Prev by Date: ...
    (comp.lang.java.programmer)