Question on the flush method  
Author Message
JnlSeb





PostPosted: 2003-9-16 20:06:00 Top

java-programmer, Question on the flush method According to Sun's web site, the flush method of the OutputStream object
does nothing.

So, what does actually happens when you call it?
At times I may see different behavior when including it within a program
(some times a socket read error) which I would think is strange esspecially
if the method is not supposed to do anything.

Any ideas?


 
Schenaerts Michaé›”





PostPosted: 2003-9-16 23:27:00 Top

java-programmer >> Question on the flush method some subClasses may used it (FilterOutputStream)

On Tue, 16 Sep 2003 12:06:17 GMT, JnlSeb <email***@***.com> wrote:

> According to Sun's web site, the flush method of the OutputStream object
> does nothing.
>
> So, what does actually happens when you call it?
> At times I may see different behavior when including it within a program
> (some times a socket read error) which I would think is strange
> esspecially
> if the method is not supposed to do anything.
>
> Any ideas?
>
>



--
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
 
Phil...





PostPosted: 2003-9-17 3:10:00 Top

java-programmer >> Question on the flush method In general a flush method is used to force
data (if there is any) from buffers to a file or device.

"JnlSeb" <email***@***.com> wrote in message
news:Z0D9b.5726$email***@***.com...
> According to Sun's web site, the flush method of the OutputStream object
> does nothing.
>
> So, what does actually happens when you call it?
> At times I may see different behavior when including it within a program
> (some times a socket read error) which I would think is strange
esspecially
> if the method is not supposed to do anything.
>
> Any ideas?
>
>


 
 
Alexander Bryanson





PostPosted: 2003-9-19 3:45:00 Top

java-programmer >> Question on the flush method

JnlSeb wrote:

> According to Sun's web site, the flush method of the OutputStream object
> does nothing.
>
> So, what does actually happens when you call it?
> At times I may see different behavior when including it within a program
> (some times a socket read error) which I would think is strange esspecially
> if the method is not supposed to do anything.
>
> Any ideas?
>
>

I'd hate to sound pedantic, but none of the methods of OutputStream do
anything, since OutputStream is an interface. They're just guidelines.

In theory, I could write an implementation of OutputStream that did
complex math, but, what would the point be? Besides, complex math makes
my head hurt. >_<