Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4CBB115E4 for ; Thu, 1 May 2014 23:32:27 +0000 (UTC) Received: (qmail 2335 invoked by uid 500); 1 May 2014 23:32:15 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 2217 invoked by uid 500); 1 May 2014 23:32:15 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 2206 invoked by uid 99); 1 May 2014 23:32:15 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 May 2014 23:32:15 +0000 Date: Thu, 1 May 2014 23:32:15 +0000 (UTC) From: "Bernd Eckenfels (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (VFS-119) Stream closed by the monitor MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/VFS-119?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13987173#comment-13987173 ] Bernd Eckenfels commented on VFS-119: ------------------------------------- I think clone is the wrong attribute. > Stream closed by the monitor > ---------------------------- > > Key: VFS-119 > URL: https://issues.apache.org/jira/browse/VFS-119 > Project: Commons VFS > Issue Type: Bug > Reporter: Philippe Poulard > Priority: Blocker > > java.io.IOException: Stream closed > is thrown when processing a local file > 1-create a local file file:///exemple.txt > 2-get the input stream : is > 3-set a mark : is.mark(1024) > 4-read the file until the end > 5-reset the mark : is.reset() > the exception is thrown > here is a sample code : > InputStream is = f.getInputStream(); > is.mark( 1024 ); > while (true) { > int data = is.read(); > if (data == -1) break; > } > is.reset(); -- This message was sent by Atlassian JIRA (v6.2#6252)