When I look at the documentation for flush() under OutputStream it
says something to the effect that "individual implementations should
assure that data is written out.  This implementation does nothing".
What exactly does this mean?  Does this method do anything?

On Apr 13, 4:51 am, Zsolt Vasvari <[email protected]> wrote:
> We don't know what kind of OutputStream you are using, but my guess is
> that you need to flush() it.
>
> On Apr 13, 3:25 pm, Hitendrasinh Gohil <[email protected]>
> wrote:
>
> > hi,
>
> > i am just writing one file from other file,but last 7 or 8 bytes are
> > missing.i am using below code to write the file.
>
> > buf= new byte[4096];
> >  int numRead = 0;
> >             while ((numRead = is.read(buf))>0) {
> >                 os.write(buf, 0, numRead);
> >             }
>
> > can anyone tell me what could be the reason?

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to