Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 64935D2F3 for ; Fri, 27 Jul 2012 16:24:10 +0000 (UTC) Received: (qmail 74477 invoked by uid 500); 27 Jul 2012 16:24:09 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 74378 invoked by uid 500); 27 Jul 2012 16:24:09 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 74362 invoked by uid 99); 27 Jul 2012 16:24:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 16:24:09 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of garydgregory@gmail.com designates 209.85.160.171 as permitted sender) Received: from [209.85.160.171] (HELO mail-gh0-f171.google.com) (209.85.160.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 27 Jul 2012 16:24:02 +0000 Received: by ghy10 with SMTP id 10so4279318ghy.30 for ; Fri, 27 Jul 2012 09:23:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:from:in-reply-to:mime-version:date:message-id:subject:to :content-type:content-transfer-encoding; bh=RPE+6ck7CkTmajGxaRZfDxEAm7xJXVDDLkPVvBsxspY=; b=VjWa+fmdwjRcNI3CcW6WVINVcnKgTSkXiZRqBcDr2rzVEsF+Y2RHW/kyWqjF0oiSVZ gdHrHeucE4IArxsTseyB65Z01ny8dn0bvIGgK5G56cgyGZNnxK5qyKuaKMx5qGRkLEKk tZlG7JhrElfoFMHVSsbN2kPikg8lJ39G/gIEJ2tYOylF9WAkyzRjOjqqkW3z8vkk8yot DErIrT3GDNXj18SzPS9dUEp0ROfSZCo8GXVmNezKvpcpnOuCF7oIHpYBfyR8HAbSZ2yk B2+0g+V0GSzsmFo5S4hIMP2RvRJs2Mj6OGX6r72eZC+q/YVwWP9VaAN4cvHhuL5MeAlA uu3A== Received: by 10.66.77.40 with SMTP id p8mr6507496paw.78.1343406221477; Fri, 27 Jul 2012 09:23:41 -0700 (PDT) References: <6476876037292377039@unknownmsgid> <3443151775683009906@unknownmsgid> <-6558336966001378234@unknownmsgid> <-9172525340473624107@unknownmsgid> From: Gary Gregory In-Reply-To: Mime-Version: 1.0 (1.0) Date: Fri, 27 Jul 2012 12:23:37 -0400 Message-ID: <5806055376776806721@unknownmsgid> Subject: Re: [commons-vfs] Need clarification for FileContent.getOutputStream(boolean) method.. To: Commons Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org I'm on the road, please feel free to update. Gary On Jul 27, 2012, at 12:04, Ralph Goers wrote: > I meant the javadoc for the method. It doesn't mention append. All it sa= ys is "If the file does not exist, this method creates it, and the parent f= older, if necessary. If the file does exist, it is replaced with whatever i= s written to the output stream." However, the append parameter does mention= appending. So your comment that it is working as documented applies to the= method portion but not to the specific parameter. > > Ralph > > On Jul 27, 2012, at 8:46 AM, Gary Gregory wrote: > >> The Javadoc talks about append. What "main" docs? I thought the >> Javadoc what the primary doc source? >> >> Gary >> >> On Jul 27, 2012, at 11:04, Ralph Goers wrot= e: >> >>> That is confusing. The main documentation says nothing about append, y= et the true/false flag implies that it should append. >>> >>> Ralph >>> >>> On Jul 27, 2012, at 6:00 AM, Gary Gregory wrote: >>> >>>> Sounds like the API works as documented. >>>> >>>> Gary >>>> >>>> On Jul 27, 2012, at 8:52, vijayaratha vijayasingam >>>> wrote: >>>> >>>>> Hi Gray, >>>>> >>>>> This is my observation..if i pass false.., a output file is newly cre= ated >>>>> (even there is a ouput file is present..) >>>>> If i pass true also same thing happens..I thought it will append to >>>>> existing output file....Am i misunderstand anything? >>>>> >>>>> On 27 July 2012 18:11, Gary Gregory wrote: >>>>> >>>>>> You file never gets appended? Can you provide a test case? Does it >>>>>> still happen with the trunk code? What version are you using? >>>>>> >>>>>> Gary >>>>>> >>>>>> On Jul 27, 2012, at 8:35, vijayaratha vijayasingam >>>>>> wrote: >>>>>> >>>>>>> I checked the doc..but i dont see any difference, when i pass >>>>>> true/false.. >>>>>>> >>>>>>> On 27 July 2012 17:54, Gary Gregory wrote: >>>>>>> >>>>>>>> Please see the Javadoc at >>>>>>>> >>>>>>>> >>>>>> http://commons.apache.org/vfs/apidocs/org/apache/commons/vfs2/FileCo= ntent.html#getOutputStream(boolean) >>>>>>>> >>>>>>>> Gary >>>>>>>> >>>>>>>> On Jul 27, 2012, at 5:00, vijayaratha vijayasingam >>>>>>>> wrote: >>>>>>>> >>>>>>>>> Hi all; >>>>>>>>> We are using commons.vfs2 library in our synapse vfs transport... >>>>>>>>> I need a clarification for the following function; >>>>>>>>> >>>>>>>>> *org.apache.commons.vfs2.FileContent.getOutputStream(boolean)* >>>>>>>>> >>>>>>>>> If i use true or false, whatever, i see my output file is newly >>>>>> generated >>>>>>>>> one.. >>>>>>>>> Can anybody clarify what is the exact difference if i use true an= d >>>>>> false? >>>>>>>>> >>>>>>>>> Thanks >>>>>>>>> -Ratha >>>>>>>> >>>>>>>> ------------------------------------------------------------------= --- >>>>>>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>>>>>>> For additional commands, e-mail: user-help@commons.apache.org >>>>>>>> >>>>>>>> >>>>>> >>>>>> --------------------------------------------------------------------= - >>>>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>>>>> For additional commands, e-mail: user-help@commons.apache.org >>>>>> >>>>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>>> For additional commands, e-mail: user-help@commons.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >>> For additional commands, e-mail: user-help@commons.apache.org >>> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@commons.apache.org >> For additional commands, e-mail: user-help@commons.apache.org >> > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@commons.apache.org For additional commands, e-mail: user-help@commons.apache.org