BufferredOutputStream issue about across platform

BufferredOutputStream is not implemented consistently between Windows and Linux.
 
Take this for an example,
 
BufferredOutputStream  bos  = new BufferredOutputStream (new FileOutputSteam);
 
bos.write(......);
 
If the bos is not closed explicitly, it doesn't work in Windows, but works well in linux. That is to say, in widnows, the content is not written into the file correctly if it runs in windows.
 
Please notice this.

你可能感兴趣的:(休闲,platform,issue,across)