Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 76832 invoked from network); 6 Nov 2008 12:06:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Nov 2008 12:06:36 -0000 Received: (qmail 59909 invoked by uid 500); 6 Nov 2008 12:06:42 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 59817 invoked by uid 500); 6 Nov 2008 12:06:42 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 59805 invoked by uid 99); 6 Nov 2008 12:06:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 04:06:42 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2008 12:05:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 59894234C27E for ; Thu, 6 Nov 2008 04:05:45 -0800 (PST) Message-ID: <1632589879.1225973145365.JavaMail.jira@brutus> Date: Thu, 6 Nov 2008 04:05:45 -0800 (PST) From: "Kristian Waagan (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3935) Introduce interface for a position aware stream In-Reply-To: <774826016.1225882904678.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3935?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kristian Waagan updated DERBY-3935: ----------------------------------- Attachment: derby-3935-1a-PositionedStream.diff 'derby-3935-1a-PositionedStream.diff' is the first revision of the PositionedStream interface. Two streams implement the interface: PositionedStoreStream and LOBInputStream. The interface has the following methods: - asInputStream() : convenience method to return a reference to the stream as InputStream. - getPosition() : returns the current position of the stream. - reposition(long) : repositions the stream to the requested position. Patch ready for review. > Introduce interface for a position aware stream > ----------------------------------------------- > > Key: DERBY-3935 > URL: https://issues.apache.org/jira/browse/DERBY-3935 > Project: Derby > Issue Type: Sub-task > Components: JDBC > Affects Versions: 10.5.0.0 > Reporter: Kristian Waagan > Assignee: Kristian Waagan > Priority: Minor > Attachments: derby-3935-1a-PositionedStream.diff > > > Add an interface for streams that are aware of their position and that can reposition itself on request. > Initially there will be two such stream objects; PositionedStoreStream and LOBInputStream. > The interface will be used to allow the Clob implementation (including UTF8Reader) to handle the various internal Clob representations in a consistent manner when it comes to positioning the underlying byte stream. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.