Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #2401

Re: FileOutputStream questions

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail
From Stanimir Stamenkov <s7an10@netscape.net>
Newsgroups comp.lang.java.help
Subject Re: FileOutputStream questions
Date Tue, 01 Jan 2013 02:36:11 +0200
Organization A noiseless patient Spider
Lines 28
Message-ID <kbtb1q$lor$1@dont-email.me> (permalink)
References <p4ejd893hi08mkpjabtfn6mcbemhmuceua@4ax.com> <2u5kd8hl9tvgi2vkjf6guedae5nqrmbi47@4ax.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
Injection-Date Tue, 1 Jan 2013 00:36:11 +0000 (UTC)
Injection-Info mx04.eternal-september.org; posting-host="22a42f4763be47dfd277c16551a5bdf1"; logging-data="22299"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+9Jblk682fUBgbgfOWs0gE"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20100101 Firefox/17.0 SeaMonkey/2.14.1
In-Reply-To <2u5kd8hl9tvgi2vkjf6guedae5nqrmbi47@4ax.com>
X-Face "@)%Vlap6d%OVYDS}B4YUWE@yUy+^!w/+.q.,c5kjI#+uG?kYP&r/pTjNWgo:g[A,O=AL3/ j&4Le2cau$<e=FPq~GbeZ6DW1Grey[VHn8?ktzvoQtzlg;]&rh8g]CD+_BC7d[gW{Yx&_X*4Q$h&nJ l@t(|4R4:T='&]U#ui+z9OC$.~gJjU93kh:Ojc$Cz0n#I9!~!9ay?E<UlW&5,IFX1*KtA>MYEFst$y y"m]M7tq\S(>[a$x0x8%S
Cancel-Lock sha1:fE4/JkK7ZAKYWLPo0UCNV8vBtuI=
Xref csiph.com comp.lang.java.help:2401

Show key headers only | View raw


Tue, 25 Dec 2012 13:17:14 -0800, /Roedy Green/:

> I discovered this
>
>                  fos.flush();
>                  fos.getFD().sync();
>
> Which acts like close/reopen.

You may also checkout the following thread from the Xerces-J Users 
mailing list:

"Does LSSerailzer creates a thread of its own." 
<http://mail-archives.apache.org/mod_mbox/xerces-j-users/200708.mbox/browser>

The following reply suggest a newer Java NIO API - 
FileChannel.force(true), for the same purpose:

http://mail-archives.apache.org/mod_mbox/xerces-j-users/200708.mbox/%3C46D3FBFA.8060104%40netscape.net%3E

http://docs.oracle.com/javase/6/docs/api/java/nio/channels/FileChannel.html#force%28boolean%29

And the following appears just the same as your finding:

http://mail-archives.apache.org/mod_mbox/xerces-j-users/200708.mbox/%3C46D59744.2010505%40netscape.net%3E

-- 
Stanimir

Back to comp.lang.java.help | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-25 06:36 -0800
  Re: FileOutputStream questions markspace <markspace@nospam.nospam> - 2012-12-25 07:54 -0800
    Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:30 -0800
  Re: FileOutputStream questions Jukka Lahtinen <jtfjdehf@hotmail.com.invalid> - 2012-12-25 18:32 +0200
  Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-25 11:45 -0800
    Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:32 -0800
      Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-26 09:19 -0800
  Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-25 13:17 -0800
    Re: FileOutputStream questions Knute Johnson <nospam@knutejohnson.com> - 2012-12-25 14:05 -0800
      Re: FileOutputStream questions Roedy Green <see_website@mindprod.com.invalid> - 2012-12-26 01:35 -0800
      Re: FileOutputStream questions markspace <markspace@nospam.nospam> - 2012-12-26 07:46 -0800
    Re: FileOutputStream questions Stanimir Stamenkov <s7an10@netscape.net> - 2013-01-01 02:36 +0200

csiph-web