[brailleblaster] Re: searching java reference

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <brailleblaster@xxxxxxxxxxxxx>
  • Date: Thu, 9 Dec 2010 21:49:11 -0500

This might offer some insight.

http://download.oracle.com/javase/6/docs/api/java/lang/ProcessBuilder.html#redirectErrorStream()

Take care,
Sina 

-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx 
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
Sent: Thursday, December 09, 2010 7:03 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: searching java reference

Ok, here it is:

http://download.oracle.com/javase/6/docs/api/java/lang/Process.html

--le

----- Original Message -----
From: "Sina Bahram" <sbahram@xxxxxxxxx>
To: <brailleblaster@xxxxxxxxxxxxx>
Sent: Thursday, December 09, 2010 5:57 PM
Subject: [brailleblaster] Re: searching java reference


Please post where you got that from so I can see the actual javadoc.

And I disagree about inputStream, but I agree that errorStream should be an 
outputStream

Take care,
Sina



-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx 
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
Sent: Thursday, December 09, 2010 6:42 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] Re: searching java reference

Sina, the docs say

InputStream getErrorStream();
InputStream getInputStream();
OutputStream getOutputStream();

If I'm the parent process and just spawned this process, then the last 2 
return types should be switched as I will be writing to
input and reading from output.
Note that err and out are treated inconsistently.

Is this a bug? Do I need to do some obscure pipe operations to get the input 
and output flowing correctly? Then why was err handled
differently from out?
You're a java expert, perhaps you can settle this. I am just now getting 
ready to compile my code, which should tell me if my types
are mismatched.
I'll be posting to list hopefully soon.
TIA
--le

----- Original Message -----
From: "Sina Bahram" <sbahram@xxxxxxxxx>
To: <brailleblaster@xxxxxxxxxxxxx>
Sent: Thursday, December 09, 2010 5:11 PM
Subject: [brailleblaster] Re: searching java reference


The human part of javadoc can be incorrect, although I find this doubtful.

However, the actual return type of the methods, as you've discussed, are not
incorrect. They might not meet expectations, but it is
automatically generated, so I find it next to impossible for this to be
incorrect.

Take care,
Sina
-----Original Message-----
From: brailleblaster-bounce@xxxxxxxxxxxxx
[mailto:brailleblaster-bounce@xxxxxxxxxxxxx] On Behalf Of qubit
Sent: Thursday, December 09, 2010 5:49 PM
To: brailleblaster@xxxxxxxxxxxxx
Subject: [brailleblaster] searching java reference

Is there an easyer way to search the java reference pages by class or by
category? I'm having a fun time playing with process and
runtime and streams and the like, but some of the docs are indeed incorrect,
despite what Mike is saying.
I am looking at the link you sent me about the getInputStream() etc methods
in class Process.
Perhaps I will go look for a download link, but I don't have much space on
my hd.

I will post what I have so far shortly, but indeed I know the docs are
wrong, because they are inconsistent.  Compiling will solve
the dilemma.
--le







Other related posts: