Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 60655 invoked from network); 11 Jan 2010 06:27:01 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Jan 2010 06:27:01 -0000 Received: (qmail 33386 invoked by uid 500); 11 Jan 2010 06:27:00 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 33319 invoked by uid 500); 11 Jan 2010 06:27:00 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 33309 invoked by uid 99); 11 Jan 2010 06:27:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 11 Jan 2010 06:27:00 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=MISSING_MID,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [211.99.232.114] (HELO tongtech.com) (211.99.232.114) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 11 Jan 2010 06:26:52 +0000 Received: from IBM0618 (unknown [124.42.76.2]) by tongtech.com with CMailServer 5.3 SMTP; Mon, 11 Jan 2010 14:26:18 +0800 From: "ext2" To: Subject: Does stream based splitter support a property to indicate end of splitting? Date: Mon, 11 Jan 2010 14:26:28 +0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook, Build 11.0.5510 x-mimeole: Produced By Microsoft MimeOLE V6.00.2900.5579 Thread-Index: AcqSg30PuSf5J+QoQpWpzLuc4OXWNwAAbhkg In-Reply-To: <27106219.post@talk.nabble.com> Message-Id: <20100111062700.66842478408@athena.apache.org> Hi: By checking the camel's document, I just find a property tell the index of message, but cannot find a property to indicate the end of splitting. But some-times, it will be very use-full for stream-based splitter. For example: When I using stream-based splitter to process all the records stored in a large file sequence-ly. I will use a bean which return a iterator which read record sequence from the file(which store a lot of record ).After processed all the record, I must close the file. So I need a flag to indicate the end of record and close the file; If without such a property to indicate end of splitting, I must write a very special iterator which give a "End-Flag" message to say : "the record is all over". But the program of iterator looks very odd; Does any-one knows about this? Or a better suggest to resolve my-question? Thanks for any-suggestion;